You are here

public function XmlEncoderTest::testDecodeEmptyXml 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::testDecodeEmptyXml()

File

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

Class

XmlEncoderTest

Namespace

Symfony\Component\Serializer\Tests\Encoder

Code

public function testDecodeEmptyXml() {
  $this
    ->setExpectedException('Symfony\\Component\\Serializer\\Exception\\UnexpectedValueException', 'Invalid XML data, it can not be empty.');
  $this->encoder
    ->decode(' ', 'xml');
}