public function diff($items) { return new static(array_diff($this->items, $this->getArrayableItems($items))); }
public function testDiffNull() { $c = new Collection(['id' => 1, 'first_word' => 'Hello']); $this->assertEquals(['id' => 1, 'first_word' => 'Hello'], $c->diff(null)->all()); }