Ejemplo n.º 1
0
 public function testInitializingExistingEntity()
 {
     $entity = new Dummy($this->adapter, 1);
     $entity->setFirstName('lilith');
     $this->assertEquals('lilith', $entity->getFirstName());
     $this->assertEquals('man', $entity->getName());
 }
Ejemplo n.º 2
0
 public function testSettingPropertiesFromArray()
 {
     $this->entity->fromArray(['number' => 666, 'name' => 'beast']);
     $this->assertEquals(666, $this->entity->getNumber());
     $this->assertEquals('beast', $this->entity->getName());
 }