/** * @expectedException OutOfBoundsException * @expectedExceptionMessage The index "9999" is not in the interval [0, 4). */ public function testRemoveWithInvalidIndex() { $this->seq->remove(9999); }