REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.00 KB
Close
/opt/alt/php53/usr/share/pear/test/Config/Symfony/Component/Config/Tests/Definition/Dumper/XmlReferenceDumperTest.php
Text
Base64
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * 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 Symfony\Component\Config\Definition\Dumper\XmlReferenceDumper; use Symfony\Component\Config\Tests\Fixtures\Configuration\ExampleConfiguration; class XmlReferenceDumperTest extends \PHPUnit_Framework_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 <<<EOL <!-- Namespace: http://example.org/schema/dic/acme_root --> <!-- scalar-required: Required --> <!-- enum: One of "this"; "that" --> <config boolean="true" scalar-empty="" scalar-null="null" scalar-true="true" scalar-false="false" scalar-default="default" scalar-array-empty="" scalar-array-defaults="elem1,elem2" scalar-required="" enum="" > <!-- some info --> <!-- child3: this is a long multi-line info text which should be indented; Example: example setting --> <array child1="" child2="" child3="" /> <!-- prototype --> <parameter name="parameter name">scalar value</parameter> <!-- prototype --> <connection user="" pass="" /> </config> EOL; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
XmlReferenceDumperTest.php
2.00 KB
lrw-r--r--
2019-12-18 11:20:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
YamlReferenceDumperTest.php
1.68 KB
lrw-r--r--
2019-12-18 11:20:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).