public function XmlEncoderTest::testDecodeEmptyXml 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::testDecodeEmptyXml()
File
- vendor/
symfony/ serializer/ Tests/ Encoder/ XmlEncoderTest.php, line 434
Class
Namespace
Symfony\Component\Serializer\Tests\EncoderCode
public function testDecodeEmptyXml() {
$this
->setExpectedException('Symfony\\Component\\Serializer\\Exception\\UnexpectedValueException', 'Invalid XML data, it can not be empty.');
$this->encoder
->decode(' ', 'xml');
}