From 2c46b3fd1461df920f5e4b75ca8a7794b6a289bb Mon Sep 17 00:00:00 2001 From: Fonata Date: Mon, 26 Dec 2022 20:49:16 +0100 Subject: [PATCH] test: make code compatible with more recent PHPUnit versions --- tests/methods/ConstructTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/methods/ConstructTest.php b/tests/methods/ConstructTest.php index c0a91af..5b3bfc2 100644 --- a/tests/methods/ConstructTest.php +++ b/tests/methods/ConstructTest.php @@ -62,7 +62,7 @@ class ConstructTest extends TestCase { $verb = strtok($script_file, '_.'); if (!in_array($verb, ['download', 'save'], true)) { - $this->assertContains('', $ob_get_clean); + $this->assertStringContainsString('', $ob_get_clean); } } chdir('..');