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 4480605 commit 6c501beCopy full SHA for 6c501be
tests/format/FormatXmlTest.php
@@ -10,4 +10,12 @@ public function it_formats_passed_xml_string()
10
11
$this->assertEquals($expected, format_xml($unformatted));
12
}
13
+
14
+ /** @test */
15
+ public function it_throws_an_exception_if_non_xml_string_passed()
16
+ {
17
+ $this->willSeeException(Exception::class, 'String could not be parsed as XML');
18
19
+ format_xml('Non XML');
20
+ }
21
0 commit comments