Skip to content

Commit 8818eee

Browse files
committed
Merge branch '3.1'
* 3.1: fixed expected exception annotations
2 parents 823e378 + 8de2ed9 commit 8818eee

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;
@@ -590,7 +589,7 @@ public function testDenomalizeRecursive()
590589
}
591590

592591
/**
593-
* @expectedException UnexpectedValueException
592+
* @expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException
594593
* @expectedExceptionMessage The type of the "date" attribute for class "Symfony\Component\Serializer\Tests\Normalizer\ObjectOuter" must be one of "DateTimeInterface" ("string" given).
595594
*/
596595
public function testRejectInvalidType()
@@ -602,7 +601,7 @@ public function testRejectInvalidType()
602601
}
603602

604603
/**
605-
* @expectedException UnexpectedValueException
604+
* @expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException
606605
* @expectedExceptionMessage The type of the key "a" must be "int" ("string" given).
607606
*/
608607
public function testRejectInvalidKey()

0 commit comments

Comments
 (0)