Skip to content

Commit 1afe844

Browse files
committed
expect the proper exception
1 parent f83a4aa commit 1afe844

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/DeSerializationTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
use PHPUnit\Framework\TestCase;
55
use ReflectionClass;
6+
use Square\Pjson\Exceptions\MissingRequiredPropertyException;
67
use Square\Pjson\Tests\Definitions\BigCat;
78
use Square\Pjson\Tests\Definitions\BigInt;
89
use Square\Pjson\Tests\Definitions\CatalogCategory;
@@ -562,7 +563,7 @@ public function testRequiredPropertyMissing()
562563
{
563564
$json = '{}';
564565

565-
$this->expectException(\Exception::class);
566+
$this->expectException(MissingRequiredPropertyException::class);
566567

567568
Token::fromJsonString($json);
568569
}

0 commit comments

Comments
 (0)