Skip to content

Commit

Permalink
entity: removed buggy __debugInfo [closes #64]
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Mar 17, 2015
1 parent c42520c commit bf92fd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/Entity/AbstractEntity.php
Expand Up @@ -253,12 +253,6 @@ public function unserialize($unserialized)
}


public function __debugInfo()
{
return $this->data;
}


// === events ======================================================================================================


Expand Down
5 changes: 4 additions & 1 deletion tests/cases/unit/Entity/AbstractEntity.getters_setters.phpt
Expand Up @@ -63,9 +63,12 @@ class AbstractEntityGettersSettersTest extends TestCase
$entity->setValue('isMain', 'Yes');
Assert::same('Yes', $entity->getValue('isMain'));

$propertyReflection = new \ReflectionProperty('Nextras\Orm\Entity\AbstractEntity', 'data');
$propertyReflection->setAccessible(TRUE);

Assert::same([
'isMain' => TRUE,
], $entity->__debugInfo());
], $propertyReflection->getValue($entity));
}

}
Expand Down

0 comments on commit bf92fd1

Please sign in to comment.