示例#1
0
 /**
  * @covers ::hasId
  */
 public function testHasId()
 {
     $model = new Model(['id' => 12]);
     $models = new Models();
     $this->assertFalse($models->hasId(12));
     $models->add($model);
     $this->assertTrue($models->hasId(12));
 }