示例#1
0
 /**
  * @covers ::isEmpty
  */
 public function testIsEmpty()
 {
     $model = new Model();
     $models = new Models();
     $this->assertTrue($models->isEmpty());
     $models->add($model);
     $this->assertFalse($models->isEmpty());
 }
示例#2
0
 /**
  * @return boolean
  */
 public function isEmpty()
 {
     return $this->current->isEmpty();
 }