Ejemplo n.º 1
0
 public function testGettersSetters()
 {
     $class = new \ReflectionClass($this->entity);
     $prop = $class->getProperty('id');
     $prop->setAccessible(true);
     $prop->setValue($this->entity, self::ENTITY_ID);
     $this->assertEquals(self::ENTITY_ID, $this->entity->getId());
     $this->entity->setClassType(self::CLASS_TYPE);
     $this->assertEquals(self::CLASS_TYPE, $this->entity->getClassType());
 }