Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2019-02-24 19:38:37 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2019-02-24 22:32:28 +0300
commit92cc67fbf7161b90203680d3cfc3acb2b998cd75 (patch)
treebc4da3961b9eb81239c459b6041ea0b307ba96f7 /test/classes/ErrorHandlerTest.php
parentd3859b30be87fe35196c82bece4724080618c91c (diff)
Replace assertContains() with assertStringContainsString()
Using assertContains() with string haystacks is deprecated and will not be supported in PHPUnit 9. Refactor your test to use assertStringContainsString() or assertStringContainsStringIgnoringCase() instead. Using assertNotContains() with string haystacks is deprecated and will not be supported in PHPUnit 9. Refactor your test to use assertStringNotContainsString() or assertStringNotContainsStringIgnoringCase() instead. Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'test/classes/ErrorHandlerTest.php')
-rw-r--r--test/classes/ErrorHandlerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/classes/ErrorHandlerTest.php b/test/classes/ErrorHandlerTest.php
index 9ca29d1bfe..c6ad4d7b29 100644
--- a/test/classes/ErrorHandlerTest.php
+++ b/test/classes/ErrorHandlerTest.php
@@ -125,7 +125,7 @@ class ErrorHandlerTest extends PmaTestCase
if ($output_hide == '') {
$this->assertEquals('', $output);
} else {
- $this->assertContains($output_hide, $output);
+ $this->assertStringContainsString($output_hide, $output);
}
}
@@ -155,7 +155,7 @@ class ErrorHandlerTest extends PmaTestCase
) {
$this->object->handleError($errno, $errstr, $errfile, $errline);
- $this->assertContains(
+ $this->assertStringContainsString(
$output_show,
$this->object->getDispErrors()
);