protected function XmlEncoderTest::getNamespacedXmlSource 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::getNamespacedXmlSource()
2 calls to XmlEncoderTest::getNamespacedXmlSource()
- XmlEncoderTest::testDecodeWithNamespace in vendor/
symfony/ serializer/ Tests/ Encoder/ XmlEncoderTest.php - XmlEncoderTest::testEncodeWithNamespace in vendor/
symfony/ serializer/ Tests/ Encoder/ XmlEncoderTest.php
File
- vendor/
symfony/ serializer/ Tests/ Encoder/ XmlEncoderTest.php, line 453
Class
Namespace
Symfony\Component\Serializer\Tests\EncoderCode
protected function getNamespacedXmlSource() {
return '<?xml version="1.0"?>' . "\n" . '<response xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:media="http://search.yahoo.com/mrss/" xmlns:gd="http://schemas.google.com/g/2005" xmlns:yt="http://gdata.youtube.com/schemas/2007">' . '<qux>1</qux>' . '<app:foo>foo</app:foo>' . '<yt:bar>a</yt:bar><yt:bar>b</yt:bar>' . '<media:baz><media:key>val</media:key><media:key2>val</media:key2><item key="A B">bar</item>' . '<item><title>title1</title></item><item><title>title2</title></item>' . '<Barry size="large"><FooBar gd:id="1"><Baz>Ed</Baz></FooBar></Barry></media:baz>' . '</response>' . "\n";
}