public function testDistinctWorks() { $this->collection[] = (object) array('prop' => 'value'); $this->collection[] = (object) array('prop' => 'value'); $this->assertSame(array('value'), $this->collection->distinct('prop')); }