@@ -33,14 +33,14 @@ public function test()
33
33
34
34
exec ("$ php $ phpunit -c $ dir/phpunit-without-listener.xml.dist $ dir/tests/ --coverage-text 2> /dev/null " , $ output );
35
35
$ output = implode ("\n" , $ output );
36
- $ this ->assertContains ('FooCov ' , $ output );
36
+ $ this ->assertStringContainsString ('FooCov ' , $ output );
37
37
38
38
exec ("$ php $ phpunit -c $ dir/phpunit-with-listener.xml.dist $ dir/tests/ --coverage-text 2> /dev/null " , $ output );
39
39
$ output = implode ("\n" , $ output );
40
- $ this ->assertNotContains ('FooCov ' , $ output );
41
- $ this ->assertContains ("SutNotFoundTest::test \nCould not find the tested class. " , $ output );
42
- $ this ->assertNotContains ("CoversTest::test \nCould not find the tested class. " , $ output );
43
- $ this ->assertNotContains ("CoversDefaultClassTest::test \nCould not find the tested class. " , $ output );
44
- $ this ->assertNotContains ("CoversNothingTest::test \nCould not find the tested class. " , $ output );
40
+ $ this ->assertStringNotContainsString ('FooCov ' , $ output );
41
+ $ this ->assertStringContainsString ("SutNotFoundTest::test \nCould not find the tested class. " , $ output );
42
+ $ this ->assertStringNotContainsString ("CoversTest::test \nCould not find the tested class. " , $ output );
43
+ $ this ->assertStringNotContainsString ("CoversDefaultClassTest::test \nCould not find the tested class. " , $ output );
44
+ $ this ->assertStringNotContainsString ("CoversNothingTest::test \nCould not find the tested class. " , $ output );
45
45
}
46
46
}
0 commit comments