You are here

public function XmlEncoderTest::testDecodeInvalidXml in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\XmlEncoderTest::testDecodeInvalidXml()

@expectedException \Symfony\Component\Serializer\Exception\UnexpectedValueException

File

vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php, line 410

Class

XmlEncoderTest

Namespace

Symfony\Component\Serializer\Tests\Encoder

Code

public function testDecodeInvalidXml() {
  $this->encoder
    ->decode('<?xml version="1.0"?><invalid><xml>', 'xml');
}