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()
1919 /** @test */
2020 public function it_throws_an_exception_if_non_xml_string_passed ()
2121 {
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 ' );
2324
2425 format_xml ('Non XML ' );
2526 }
Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ public function it_also_allows_to_pass_simplexmlelement_object()
8989 /** @test */
9090 public function it_throws_an_exception_if_non_xml_string_passed ()
9191 {
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 ' );
9394
9495 xml_to_array ('Non XML ' );
9596 }
You can’t perform that action at this time.
0 commit comments