Example #1
0
 public function testEmptyCollection()
 {
     $data = $this->source->query($this->source->loadResource('tests'), "SELECT * FROM tests WHERE id < 0");
     $collection = new Statement(\Gacela\Gacela::instance()->loadMapper('test'), $data);
     foreach ($collection as $row) {
         $this->fail('Empty Collection should not iterate');
     }
 }