Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab48b1f

Browse files
Fix merge
1 parent b13cc65 commit ab48b1f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Tests/Normalizer/BackedEnumNormalizerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Serializer\Tests\Normalizer;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\PropertyInfo\Type;
1615
use Symfony\Component\Serializer\Exception\InvalidArgumentException;
1716
use Symfony\Component\Serializer\Exception\NotNormalizableValueException;
1817
use 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
}

0 commit comments

Comments
 (0)