/** * @param Collection $collection * @depends testInsertAt */ public function testInsertAtOutOfBounds(Collection $collection) { $this->setExpectedException(OutOfBoundsException::class); $collection->insertAt(count($collection) + 1, 'foobar'); }
/** * @param Collection $collection * @depends testInsertAt */ public function testInsertAtOutOfBounds(Collection $collection) { $this->setExpectedException(OutOfBoundsException::class); $collection->insertAt(count($collection) + 1, 'foobar'); }