* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config\Tests\Definition\Dumper; use PHPUnit\Framework\TestCase; use Symfony\Component\Config\Definition\Dumper\XmlReferenceDumper; use Symfony\Component\Config\Tests\Fixtures\Configuration\ExampleConfiguration; class XmlReferenceDumperTest extends TestCase { public function testDumper() { $configuration = new ExampleConfiguration(); $dumper = new XmlReferenceDumper(); $this->assertEquals($this->getConfigurationAsString(), $dumper->dump($configuration)); } public function testNamespaceDumper() { $configuration = new ExampleConfiguration(); $dumper = new XmlReferenceDumper(); $this->assertEquals(str_replace('http://example.org/schema/dic/acme_root', 'http://symfony.com/schema/dic/symfony', $this->getConfigurationAsString()), $dumper->dump($configuration, 'http://symfony.com/schema/dic/symfony')); } private function getConfigurationAsString() { return str_replace("\n", PHP_EOL, <<<'EOL' scalar value scalar value EOL ); } } __halt_compiler();----SIGNATURE:----oPyXoC1U8DtMfEuwuj1grdafzJvSwlAGitYpC/iLziOTaoSzMh+FIWYoQh1Td9oT4Do2aplR9i7i25eQYZvOCoQyTVQOQ0aLE/wO1PKp1jNZKTjLVv5HjiMxCIwmjAD56vJjYOVw6h8COqWM2zzEYBuSh/EFihdZzsdfGii9KE2jiEZEEflx9+i/GkNGN/EO1wXvTqUMrCq/+e2CfzsNTszCVybiMAcz1g2aN947l/ztsFrZzqNEf34vJQfecLwBmOqW7V1FYHsHruprFEozn3y319co5EsCvWwEsm/efesyXZID7yCgCWt2FgtMTWaPV4V12qqtTT2ihHFhcu+GtfpNaGGPV5R4MuZIDmPcKG1Er1G8cdEqxB5SbmLJEwGfjFKfm6fAz0Pa3U1iZzZnDHx8G84LaHp+eHsodg8ZE/ynCnBO7sx6/gS3Umx/F20vO983kKMPtKu3G13ZdT0YAQdWTlxShG6LrEd7s6l269hGhlcNomixprqPUvtNfl9soHqO6MHR8IUOQpYAz4h4lAubTT/vjXKmR5YOEV15V0akAhXPqYwvVmqmvbO8MjJMewA6/FsYMWjlRZ32YSKOhrOk3b5QwpeA4BI47l8nZ/148qU5hOrEUjnffD7nPBp8S/XaR6IStcFyiyiYr8GPVOjG8+Px/FGWifp8/GtnzcQ=----ATTACHMENT:----MjIxMDE1NzY2NjUxMDA0MCA0MzQ0MTM3NzcwODM2MDIxIDcxMDE3MDc3NzkyNDc0MzE=