Skip to content

Commit eb31dff

Browse files
Merge branch '4.4'
* 4.4: bump phpunit-bridge cache-id removed unneeded phpdocs Use assertStringContainsString when needed Use assert assertContainsEquals when needed Use assertEqualsWithDelta when required
2 parents a96c0a9 + 8f99d06 commit eb31dff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/CoverageListenerTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ public function test()
2929

3030
exec("$php $phpunit -c $dir/phpunit-without-listener.xml.dist $dir/tests/ --coverage-text 2> /dev/null", $output);
3131
$output = implode("\n", $output);
32-
$this->assertContains('FooCov', $output);
32+
$this->assertStringContainsString('FooCov', $output);
3333

3434
exec("$php $phpunit -c $dir/phpunit-with-listener.xml.dist $dir/tests/ --coverage-text 2> /dev/null", $output);
3535
$output = implode("\n", $output);
36-
$this->assertNotContains('FooCov', $output);
37-
$this->assertContains("SutNotFoundTest::test\nCould not find the tested class.", $output);
38-
$this->assertNotContains("CoversTest::test\nCould not find the tested class.", $output);
39-
$this->assertNotContains("CoversDefaultClassTest::test\nCould not find the tested class.", $output);
40-
$this->assertNotContains("CoversNothingTest::test\nCould not find the tested class.", $output);
36+
$this->assertStringNotContainsString('FooCov', $output);
37+
$this->assertStringContainsString("SutNotFoundTest::test\nCould not find the tested class.", $output);
38+
$this->assertStringNotContainsString("CoversTest::test\nCould not find the tested class.", $output);
39+
$this->assertStringNotContainsString("CoversDefaultClassTest::test\nCould not find the tested class.", $output);
40+
$this->assertStringNotContainsString("CoversNothingTest::test\nCould not find the tested class.", $output);
4141
}
4242
}

0 commit comments

Comments
 (0)