Exemplo n.º 1
0
 /**
  * @covers ::add
  */
 public function testAdd()
 {
     $models = new Models();
     $model = new Model();
     $models->add($model);
     $this->assertSame([$model], Objects::toArray($models->all()));
 }
Exemplo n.º 2
0
 /**
  * @param  Models $models
  * @return Models $this
  */
 public function removeAll(Models $models)
 {
     $this->models->removeAll($models->all());
     return $this;
 }