コード例 #1
0
 public function testGetIterator()
 {
     $data = array('bar1', 'bar2', 'bar3');
     $col = new PropelCollection($data);
     $it1 = $col->getIterator();
     $it2 = $col->getIterator();
     $this->assertNotSame($it1, $it2, 'getIterator() returns always a new iterator');
 }