/** * Test collection first position * * @depends testKey * @depends testCurrent * @return void */ public function testFirst() { $this->collection->seek(2); $this->collection->first(); $this->assertEquals(0, $this->collection->key()); $this->assertEquals(1, $this->collection->current()); }
/** * Test invalid offset seek exception * * @expectedException \InvalidArgumentException * @return void */ public function testSeekException() { $this->collection->seek('noop'); }