updates for phpunit 8

This commit is contained in:
Shish
2019-11-21 17:16:11 +00:00
parent 4026181219
commit 1e4f08e9e9
5 changed files with 12 additions and 12 deletions

View File

@ -22,7 +22,7 @@ class UploadTest extends ShimmiePHPUnitTestCase
try {
$this->post_image("tests/pbx_screenshot.jpg", "pbx computer screenshot");
} catch (UploadException $e) {
$this->assertContains("already has hash", $e->getMessage());
$this->assertStringContainsString("already has hash", $e->getMessage());
}
}
@ -31,7 +31,7 @@ class UploadTest extends ShimmiePHPUnitTestCase
try {
$this->post_image("index.php", "test");
} catch (UploadException $e) {
$this->assertContains("Invalid or corrupted file", $e->getMessage());
$this->assertStringContainsString("Invalid or corrupted file", $e->getMessage());
}
}