Skip to content

Commit 20b9ad5

Browse files
committed
more fail information for binary data test
1 parent 377c0be commit 20b9ad5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/misc/DAOTest.class.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,9 +707,10 @@ public function nonIntegerIdentifier()
707707
try {
708708
TestBinaryStuff::dao()->import($bin);
709709
} catch (DatabaseException $e) {
710-
return $this->fail();
710+
return $this->fail($e->getMessage());
711711
}
712712

713+
TestBinaryStuff::dao()->dropIdentityMap();
713714
Cache::me()->clean();
714715

715716
$prm = Primitive::prototypedIdentifier('TestBinaryStuff', 'id');
@@ -726,7 +727,7 @@ public function nonIntegerIdentifier()
726727
try {
727728
$integerIdPrimitive->import(array('id' => 'string-instead-of-integer'));
728729
} catch (DatabaseException $e) {
729-
return $this->fail();
730+
return $this->fail($e->getMessage());
730731
}
731732
}
732733

0 commit comments

Comments
 (0)