* * 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:----S0SZ7zSFhDjvgoz6VvdmlvGbmPxK+7xufHgz/aaR7o/kutipcsdg4L6Lc9bGfau7hDUydbem/xboDDLrPZtWBn9P4OC1gbXU9jYDVNV+kq3q8/MTNZ9dbzt2uWv/FVs4K96iYQwwd/1pTPb2mDVXyZr5JZ1yd+xSx8SxDRfS+lm0/jEjGsZnKZEvcDNhoF1bPVWcgFJfox8O4W+wkAQufrv9ijPtISb+zUH5fx+iV/tHbL76Rm3aJ1cAbCtVh5dBGGX4+g6LkNvPGtRNbWsHMgaes/DcEY8/mFNwmMBrlDLweRoPpPsOA6X5esIkVoRSvNM2GH7CFxJgO+ZCfexv7JDyLkd0kunns6+Ca3dK/uXAK9IH0PTiSeTEq7OzQQfopAN5Jqk/6zyjcZ0hCOHlDdxHGuXknpUeMLzxmlq/vspEUv6tEhrSR9H96tzeqBa9TbfK7102kW44pu81jsoi7z32t7t+2ORS0DvT9ihAj7GS2ZvmHpOrs67Gb6EIZXPWftv4m5rSfegSy25e6oaVWVhcZZOIch6KxB8S9fKon3Cd0S3jVxV9GUG36KNoS0nn/MosDEL/hv4E61zS2xoYVYsfLSsleRpR7idnRchcdXcSrFG14Yxc3fTk7nGKp1M6j+6dZMthuvPg4kDRznIAaa07D/aXpBHQzgQEXr2ZBD8=----ATTACHMENT:----MTc4NTE1MjI0MjY3MzE2MCA5NTM0NTQzNTQyNTYwNTQwIDExNjQwODI2NzI4MTAxOTc=