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 12
12
namespace Symfony \Component \Serializer \Tests ;
13
13
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Symfony \Component \PropertyAccess \Exception \InvalidTypeException ;
15
16
use Symfony \Component \PropertyAccess \PropertyAccessor ;
16
17
use Symfony \Component \PropertyInfo \Extractor \PhpDocExtractor ;
17
18
use Symfony \Component \PropertyInfo \Extractor \ReflectionExtractor ;
@@ -1253,7 +1254,7 @@ public function testCollectDenormalizationErrorsWithoutTypeExtractor()
1253
1254
[
1254
1255
'currentType ' => 'array ' ,
1255
1256
'expectedTypes ' => [
1256
- 'string ' ,
1257
+ class_exists (InvalidTypeException::class) ? 'string ' : ' unknown ' ,
1257
1258
],
1258
1259
'path ' => 'string ' ,
1259
1260
'useMessageForUser ' => false ,
@@ -1262,7 +1263,7 @@ public function testCollectDenormalizationErrorsWithoutTypeExtractor()
1262
1263
[
1263
1264
'currentType ' => 'array ' ,
1264
1265
'expectedTypes ' => [
1265
- 'int ' ,
1266
+ class_exists (InvalidTypeException::class) ? 'int ' : ' unknown ' ,
1266
1267
],
1267
1268
'path ' => 'int ' ,
1268
1269
'useMessageForUser ' => false ,
@@ -1271,7 +1272,7 @@ public function testCollectDenormalizationErrorsWithoutTypeExtractor()
1271
1272
[
1272
1273
'currentType ' => 'array ' ,
1273
1274
'expectedTypes ' => [
1274
- 'float ' ,
1275
+ class_exists (InvalidTypeException::class) ? 'float ' : ' unknown ' ,
1275
1276
],
1276
1277
'path ' => 'float ' ,
1277
1278
'useMessageForUser ' => false ,
You can’t perform that action at this time.
0 commit comments