File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ public function it_formats_passed_xml_string()
19
19
/** @test */
20
20
public function it_throws_an_exception_if_non_xml_string_passed ()
21
21
{
22
- $ this ->willSeeException (Exception::class, 'String could not be parsed as XML ' );
22
+ $ this ->expectException (Exception::class);
23
+ $ this ->expectExceptionMessage ('String could not be parsed as XML ' );
23
24
24
25
format_xml ('Non XML ' );
25
26
}
Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ public function it_also_allows_to_pass_simplexmlelement_object()
89
89
/** @test */
90
90
public function it_throws_an_exception_if_non_xml_string_passed ()
91
91
{
92
- $ this ->willSeeException (Exception::class, 'String could not be parsed as XML ' );
92
+ $ this ->expectException (Exception::class);
93
+ $ this ->expectExceptionMessage ('String could not be parsed as XML ' );
93
94
94
95
xml_to_array ('Non XML ' );
95
96
}
You can’t perform that action at this time.
0 commit comments