Skip to content

Commit

Permalink
raw data tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Falseclock committed Jan 3, 2021
1 parent 13746e5 commit 8cff243
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/DBD/Entity/Tests/EntityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@
*/
class EntityTest extends TestCase
{
/**
* @throws EntityException
*/
public function testRaw()
{
$personData = Data::getPersonFullEntityData();
$person = new PersonBaseSetters($personData);

self::assertSame($personData, $person->raw());
}

/**
* @throws EntityException
*/
Expand Down Expand Up @@ -409,7 +420,8 @@ public function testOnlyDeclared()
*
* @noinspection PhpUnusedLocalVariableInspection
*/
public function testConstructionException() {
public function testConstructionException()
{
self::expectException(EntityException::class);
$aaa = new PersonBaseWithoutMapping();
}
Expand Down

0 comments on commit 8cff243

Please sign in to comment.