Пример #1
0
 public function testCollectionDictionaryReturnsEntityKeys()
 {
     get_analogue();
     $entity1 = new Entity();
     $entity1->id = 1;
     $entity2 = new Entity();
     $entity2->id = 2;
     $entity3 = new Entity();
     $entity3->id = 3;
     $c = new Collection(array($entity1, $entity2, $entity3));
     $this->assertEquals(array(1, 2, 3), $c->getEntityKeys());
 }