コード例 #1
0
 /**
  * @testdox unit test: Test rewind() resets the iterators pointer
  * @covers Zend\Db\Adapter\ParameterContainer::rewind
  */
 public function testRewind()
 {
     $this->parameterContainer->offsetSet('bar', 'baz');
     $this->parameterContainer->next();
     $this->assertEquals('bar', $this->parameterContainer->key());
     $this->parameterContainer->rewind();
     $this->assertEquals('foo', $this->parameterContainer->key());
 }