File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,28 +24,28 @@ public function testLoadFile()
24
24
XmlUtils::loadFile ($ fixtures .'invalid.xml ' );
25
25
$ this ->fail ();
26
26
} catch (\InvalidArgumentException $ e ) {
27
- $ this ->assertContains ('ERROR 77 ' , $ e ->getMessage ());
27
+ $ this ->assertStringContainsString ('ERROR 77 ' , $ e ->getMessage ());
28
28
}
29
29
30
30
try {
31
31
XmlUtils::loadFile ($ fixtures .'document_type.xml ' );
32
32
$ this ->fail ();
33
33
} catch (\InvalidArgumentException $ e ) {
34
- $ this ->assertContains ('Document types are not allowed ' , $ e ->getMessage ());
34
+ $ this ->assertStringContainsString ('Document types are not allowed ' , $ e ->getMessage ());
35
35
}
36
36
37
37
try {
38
38
XmlUtils::loadFile ($ fixtures .'invalid_schema.xml ' , $ fixtures .'schema.xsd ' );
39
39
$ this ->fail ();
40
40
} catch (\InvalidArgumentException $ e ) {
41
- $ this ->assertContains ('ERROR 1845 ' , $ e ->getMessage ());
41
+ $ this ->assertStringContainsString ('ERROR 1845 ' , $ e ->getMessage ());
42
42
}
43
43
44
44
try {
45
45
XmlUtils::loadFile ($ fixtures .'invalid_schema.xml ' , 'invalid_callback_or_file ' );
46
46
$ this ->fail ();
47
47
} catch (\InvalidArgumentException $ e ) {
48
- $ this ->assertContains ('XSD file or callable ' , $ e ->getMessage ());
48
+ $ this ->assertStringContainsString ('XSD file or callable ' , $ e ->getMessage ());
49
49
}
50
50
51
51
$ mock = $ this ->getMockBuilder (__NAMESPACE__ .'\Validator ' )->getMock ();
You can’t perform that action at this time.
0 commit comments