public function XmlEncoderTest::testDocTypeIsNotAllowed in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\XmlEncoderTest::testDocTypeIsNotAllowed()
@expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException @expectedExceptionMessage Document types are not allowed.
File
- vendor/
symfony/ serializer/ Tests/ Encoder/ XmlEncoderTest.php, line 59
Class
Namespace
Symfony\Component\Serializer\Tests\EncoderCode
public function testDocTypeIsNotAllowed() {
$this->encoder
->decode('<?xml version="1.0"?><!DOCTYPE foo><foo></foo>', 'foo');
}