public function diff($items) { return new static(array_diff($this->items, $this->getArrayableItems($items))); }
public function testDiffCollection() { $c = new Collection(array('id' => 1, 'first_word' => 'Hello')); $this->assertEquals(array('id' => 1), $c->diff(new Collection(array('first_word' => 'Hello', 'last_word' => 'World')))->all()); }