コード例 #1
0
 public function testIsEmpty()
 {
     $col = new Collection();
     $this->assertTrue($col->isEmpty(), 'isEmpty() returns true on an empty collection');
     $data = array('bar1', 'bar2', 'bar3');
     $col = new Collection($data);
     $this->assertFalse($col->isEmpty(), 'isEmpty() returns false on a non empty collection');
 }