File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Symfony/Component/Serializer/Tests Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Serializer \Tests ;
1313
1414use PHPUnit \Framework \TestCase ;
15+ use Symfony \Component \PropertyAccess \Exception \InvalidTypeException ;
1516use Symfony \Component \PropertyAccess \PropertyAccessor ;
1617use Symfony \Component \PropertyInfo \Extractor \PhpDocExtractor ;
1718use Symfony \Component \PropertyInfo \Extractor \ReflectionExtractor ;
@@ -1253,7 +1254,7 @@ public function testCollectDenormalizationErrorsWithoutTypeExtractor()
12531254 [
12541255 'currentType ' => 'array ' ,
12551256 'expectedTypes ' => [
1256- 'string ' ,
1257+ class_exists (InvalidTypeException::class) ? 'string ' : ' unknown ' ,
12571258 ],
12581259 'path ' => 'string ' ,
12591260 'useMessageForUser ' => false ,
@@ -1262,7 +1263,7 @@ public function testCollectDenormalizationErrorsWithoutTypeExtractor()
12621263 [
12631264 'currentType ' => 'array ' ,
12641265 'expectedTypes ' => [
1265- 'int ' ,
1266+ class_exists (InvalidTypeException::class) ? 'int ' : ' unknown ' ,
12661267 ],
12671268 'path ' => 'int ' ,
12681269 'useMessageForUser ' => false ,
@@ -1271,7 +1272,7 @@ public function testCollectDenormalizationErrorsWithoutTypeExtractor()
12711272 [
12721273 'currentType ' => 'array ' ,
12731274 'expectedTypes ' => [
1274- 'float ' ,
1275+ class_exists (InvalidTypeException::class) ? 'float ' : ' unknown ' ,
12751276 ],
12761277 'path ' => 'float ' ,
12771278 'useMessageForUser ' => false ,
You can’t perform that action at this time.
0 commit comments