public function XmlEncoderTest::testEncode in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\XmlEncoderTest::testEncode()
- 8 core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php \Drupal\Tests\serialization\Unit\Encoder\XmlEncoderTest::testEncode()
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\XmlEncoderTest::testEncode()
File
- vendor/
symfony/ serializer/ Tests/ Encoder/ XmlEncoderTest.php, line 218
Class
Namespace
Symfony\Component\Serializer\Tests\EncoderCode
public function testEncode() {
$source = $this
->getXmlSource();
$obj = $this
->getObject();
$this
->assertEquals($source, $this->encoder
->encode($obj, 'xml'));
}