diff options
-rw-r--r-- | tests/db/EntityTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/db/EntityTest.php b/tests/db/EntityTest.php index 9002f5f5e..3ad5c8d1e 100644 --- a/tests/db/EntityTest.php +++ b/tests/db/EntityTest.php @@ -114,4 +114,13 @@ class EntityTest extends \PHPUnit_Framework_TestCase { $this->entity->setTest(); } + + public function testFromRowShouldNotAssignEmptyArray(){ + $row = array(); + $entity2 = new TestEntity(); + + $this->entity->fromRow($row); + $this->assertEquals($entity2, $this->entity); + } + }
\ No newline at end of file |