Skip to content

Commit 8de2ed9

Browse files
committed
fixed expected exception annotations
1 parent 59ebbf0 commit 8de2ed9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/Normalizer/ObjectNormalizerTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Symfony\Component\PropertyInfo\Extractor\PhpDocExtractor;
1616
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
1717
use Symfony\Component\PropertyInfo\PropertyInfoExtractor;
18-
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
1918
use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter;
2019
use Symfony\Component\Serializer\Normalizer\ArrayDenormalizer;
2120
use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
@@ -546,7 +545,7 @@ public function testDenomalizeRecursive()
546545
}
547546

548547
/**
549-
* @expectedException UnexpectedValueException
548+
* @expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException
550549
* @expectedExceptionMessage The type of the "date" attribute for class "Symfony\Component\Serializer\Tests\Normalizer\ObjectOuter" must be one of "DateTimeInterface" ("string" given).
551550
*/
552551
public function testRejectInvalidType()
@@ -558,7 +557,7 @@ public function testRejectInvalidType()
558557
}
559558

560559
/**
561-
* @expectedException UnexpectedValueException
560+
* @expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException
562561
* @expectedExceptionMessage The type of the key "a" must be "int" ("string" given).
563562
*/
564563
public function testRejectInvalidKey()

0 commit comments

Comments
 (0)