diff --git a/tests/methods/ConstructTest.php b/tests/methods/ConstructTest.php index 5b3bfc2..ba57f00 100644 --- a/tests/methods/ConstructTest.php +++ b/tests/methods/ConstructTest.php @@ -61,8 +61,13 @@ class ConstructTest extends TestCase { $ob_get_clean = ob_get_clean(); $verb = strtok($script_file, '_.'); - if (!in_array($verb, ['download', 'save'], true)) { - $this->assertStringContainsString('', $ob_get_clean); + if (!in_array($verb, ['download', 'save'], TRUE)) { + if (method_exists($this, 'assertStringContainsString')) { + $this->assertStringContainsString('', $ob_get_clean); + } + else { + $this->assertContains('', $ob_get_clean); + } } } chdir('..');