protected function XmlEncoderTest::setUp in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\XmlEncoderTest::setUp()
- 8 core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php \Drupal\Tests\serialization\Unit\Encoder\XmlEncoderTest::setUp()
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\XmlEncoderTest::setUp()
File
- vendor/
symfony/ serializer/ Tests/ Encoder/ XmlEncoderTest.php, line 25
Class
Namespace
Symfony\Component\Serializer\Tests\EncoderCode
protected function setUp() {
$this->encoder = new XmlEncoder();
$serializer = new Serializer(array(
new CustomNormalizer(),
), array(
'xml' => new XmlEncoder(),
));
$this->encoder
->setSerializer($serializer);
}