public function testMoveThrowingOutOfBoundsExceptionOnInvalidIndex() { $statements = $this->statementsProvider(); $indexedArray = new ByPropertyIdArray($statements); $indexedArray->buildIndex(); $this->setExpectedException('OutOfBoundsException'); $indexedArray->moveObjectToIndex($statements[0], 9999); }