We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
format_xml
1 parent e394595 commit bdb96bcCopy full SHA for bdb96bc
tests/format/FormatXmlTest.php
@@ -0,0 +1,13 @@
1
+<?php
2
+
3
+class FormatXmlTest extends TestCase
4
+{
5
+ /** @test */
6
+ public function it_formats_passed_xml_string()
7
+ {
8
+ $unformatted = file_get_contents(__DIR__ . '/FormatXmlTest/unformatted.xml');
9
+ $expected = file_get_contents(__DIR__ . '/FormatXmlTest/formatted.xml');
10
11
+ $this->assertEquals($expected, format_xml($unformatted));
12
+ }
13
+}
0 commit comments