You are here

public function XmlEncoderTest::testDecode in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\XmlEncoderTest::testDecode()
  2. 8 core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php \Drupal\Tests\serialization\Unit\Encoder\XmlEncoderTest::testDecode()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Encoder/XmlEncoderTest.php \Symfony\Component\Serializer\Tests\Encoder\XmlEncoderTest::testDecode()

File

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

Class

XmlEncoderTest

Namespace

Symfony\Component\Serializer\Tests\Encoder

Code

public function testDecode() {
  $source = $this
    ->getXmlSource();
  $obj = $this
    ->getObject();
  $this
    ->assertEquals(get_object_vars($obj), $this->encoder
    ->decode($source, 'xml'));
}