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