Example #1
0
 public function testGetValuesByAttributeWithEntityId()
 {
     $entity = new Entity(array('id' => 12));
     $collection = new Collection();
     $collection->append($entity);
     $this->assertEquals(array(12 => 12), $collection->getValuesByAttribute('id', true));
 }