We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f83a4aa commit 1afe844Copy full SHA for 1afe844
tests/DeSerializationTest.php
@@ -3,6 +3,7 @@
3
4
use PHPUnit\Framework\TestCase;
5
use ReflectionClass;
6
+use Square\Pjson\Exceptions\MissingRequiredPropertyException;
7
use Square\Pjson\Tests\Definitions\BigCat;
8
use Square\Pjson\Tests\Definitions\BigInt;
9
use Square\Pjson\Tests\Definitions\CatalogCategory;
@@ -562,7 +563,7 @@ public function testRequiredPropertyMissing()
562
563
{
564
$json = '{}';
565
- $this->expectException(\Exception::class);
566
+ $this->expectException(MissingRequiredPropertyException::class);
567
568
Token::fromJsonString($json);
569
}
0 commit comments