Ejemplo n.º 1
0
 public function testClear()
 {
     $col = new PropelCollection();
     $col->clear();
     $this->assertEquals(array(), $col->getData(), 'clear() empties the collection');
     $data = array('bar1', 'bar2', 'bar3');
     $col = new PropelCollection($data);
     $col->clear();
     $this->assertEquals(array(), $col->getData(), 'clear() empties the collection');
 }