public function test_intersect_collection() { $c = new Collection(array('id' => 1, 'first_word' => 'Hello')); $actual = $c->intersect(new Collection(array('first_world' => 'Hello', 'last_word' => 'World')))->all(); $this->assertEquals(array('first_word' => 'Hello'), $actual); }