File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212namespace Symfony \Component \Serializer \Tests \Normalizer ;
1313
1414use PHPUnit \Framework \TestCase ;
15- use Symfony \Component \PropertyInfo \Type ;
1615use Symfony \Component \Serializer \Exception \InvalidArgumentException ;
1716use Symfony \Component \Serializer \Exception \NotNormalizableValueException ;
1817use Symfony \Component \Serializer \Normalizer \BackedEnumNormalizer ;
@@ -166,7 +165,7 @@ public function testDenormalizeInvalidValueInConstructorContextThrowsPathAwareNo
166165 } catch (NotNormalizableValueException $ e ) {
167166 $ this ->assertSame ('get ' , $ e ->getPath ());
168167 $ this ->assertSame ('string ' , $ e ->getCurrentType ());
169- $ this ->assertSame ([Type:: BUILTIN_TYPE_INT , Type:: BUILTIN_TYPE_STRING ], $ e ->getExpectedTypes ());
168+ $ this ->assertSame ([' int ' , ' string ' ], $ e ->getExpectedTypes ());
170169 $ this ->assertTrue ($ e ->canUseMessageForUser ());
171170 $ this ->assertSame ('The data must belong to a backed enumeration of type ' .StringBackedEnumDummy::class, $ e ->getMessage ());
172171 }
You can’t perform that action at this time.
0 commit comments