* * 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:----Ynwsq7Cnm7bYRAe0vpK0PYXEVU8YSGm/fMG45jy7m1vqlE2BTALXSFlHQUTbTuobPegJxeMJ+yloV1oIqH0wXGhe0YoE4FLSHFNk+UgQudyznFYoJxUpOQOodSV4X6WS3VWeOYfQ+s9aAa6VfC2InsI3qQICwmF/oOJQA0nKmWKdDar/wYynQ0jqBwT/mM2qR9c8GLVjfaBEp81dwzjpxa7ElvLv7Z1ztN6aseYEuCCax6qdscX1mK14tWWDqr1UF45/GGFmg4qKEgksWtofW4k55auiQSs0t+I12n5ti3DYQZXiF8OjR1SlwHlPTObn86ta9CqpG/obzBHSeOW+0nzLSUhOIsu8A/T7jNjg8bcpGQkFTFCA+tRdwj8I4+wXOAu0TTlmf6g2Ei13BrYhH7zD4ddZHXhkXjIo2qm1ORjm60IaIfhquZJ9FklzNIjFI/k5g2i9MleeApz+puk0ZBRXbM6lvKk8edGowrFbkbe9WemRxjro3udzq/njFqYICvBnSDRyqt2BGlHMESZpKzIBiNi0IJEBOJVXDMlPtrQjrh6icGqpq7YgzpDnRvBzDsMYszbKedM/0PwViyxYfZe2XRbSVG1H66z4rmxs050MqRh+H7L6N6fFrSSMHhV+R9SQ09dBlcTg6FXFC4MKNYl/i5SdLZi65c/MUh0TxjU=----ATTACHMENT:----MTIxMjA3OTU4MjU1MzUyNSAzNzI0ODg0NzYzMzM3NzM0IDc1MjEzMTk0Njk4MzgyMTE=