use Symfony\Component\Serializer\Serializer;
use Symfony\Component\Validator\ConstraintViolation;
use Symfony\Component\Validator\ConstraintViolationList;
use Symfony\Component\Validator\Exception\ValidationFailedException;
class ProblemNormalizerTest extends TestCase
{ private ProblemNormalizer
$normalizer;
protected function setUp(): void
{ $this->normalizer =
new ProblemNormalizer(false
);
} public function testSupportNormalization() { $this->
assertTrue($this->normalizer->
supportsNormalization(FlattenException::
createFromThrowable(new \
Exception())));
$this->
assertFalse($this->normalizer->
supportsNormalization(new \
Exception()));
$this->
assertFalse($this->normalizer->
supportsNormalization(new \
stdClass()));
} public function testNormalize() {