/** * @expectedException \OutOfBoundsException * @expectedExceptionMessage There is no modifier at position */ public function testRemoveModifierUnknownPosition() { $this->builder->addModifier($this->getModifierMock(), 10); $this->builder->addModifier($this->getModifierMock(), 20); $this->builder->removeModifierAt(15); }