public function testClear() { $col = new Collection(); $col->clear(); $this->assertEquals(array(), $col->getData(), 'clear() empties the collection'); $data = array('bar1', 'bar2', 'bar3'); $col = new Collection($data); $col->clear(); $this->assertEquals(array(), $col->getData(), 'clear() empties the collection'); }