From e793a5e962ae9e0940a3a5860dff48c9fb5c85c2 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Sun, 12 Mar 2017 09:12:43 +0100 Subject: [PATCH] I will be so glad when we stop supporting old PHP actually we could right now. but I don't like to introduce that change in a feature branch. --- _test/tests/inc/io_replaceinfile.test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_test/tests/inc/io_replaceinfile.test.php b/_test/tests/inc/io_replaceinfile.test.php index 2e46fc551..58a29d86b 100644 --- a/_test/tests/inc/io_replaceinfile.test.php +++ b/_test/tests/inc/io_replaceinfile.test.php @@ -101,9 +101,9 @@ class io_replaceinfile_test extends DokuWikiTest { function test_badparam() { if (class_exists('PHPUnit\Framework\Error\Warning')) { - $expect = PHPUnit\Framework\Error\Warning::class; // PHPUnit 6 + $expect = 'PHPUnit\Framework\Error\Warning'; // PHPUnit 6 } else { - $expect = PHPUnit_Framework_Error_Warning::class; // PHPUnit 5 + $expect = 'PHPUnit_Framework_Error_Warning'; // PHPUnit 5 } $this->setExpectedException($expect); -- GitLab