diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-05-17 15:07:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 15:07:09 +0300 |
commit | 3860159eaa190561896dcade11268193b4b4630b (patch) | |
tree | 22c0e3f4d21a0b79f66aaa0b82b2defa36da0895 /tests/PHPUnit/Integration | |
parent | 0acc68778bcb18931b1f74f3374e85832fe2fee1 (diff) |
Compatibility fixes for PHP 8.1 (#19143)
* Update .travis.yml
* fix php 8.1 deprecation notices
* Revert "run report tests on any PHP version (#18666)"
This reverts commit ec58ab4606cbc6c7f7c3a7aa7f1e9cc5a88e5dfb.
* apply PSR12 code formatting
* fix deprecation notice
* try to fix test
* fix frontcontroller test
* Clearing output buffers with enabled output compression makes problems on some PHP versions
* Set the mysqli error reporting to none, to prevent possible problems on PHP 8.1
Diffstat (limited to 'tests/PHPUnit/Integration')
-rw-r--r-- | tests/PHPUnit/Integration/FrontControllerTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/FrontControllerTest.php b/tests/PHPUnit/Integration/FrontControllerTest.php index d785777aa3..780a3f68a9 100644 --- a/tests/PHPUnit/Integration/FrontControllerTest.php +++ b/tests/PHPUnit/Integration/FrontControllerTest.php @@ -31,7 +31,7 @@ class FrontControllerTest extends IntegrationTestCase $this->assertEquals('error', $response['result']); $expectedFormat = <<<FORMAT -Allowed memory size of %s bytes exhausted (tried to allocate %s bytes) on {includePath}/tests/resources/trigger-fatal.php(22) #0 {includePath}/tests/resources/trigger-fatal.php(35): MyClass->triggerError(arg1="argval", arg2="another") #1 {includePath}/tests/resources/trigger-fatal.php(51): MyDerivedClass::staticMethod() #2 {includePath}/tests/resources/trigger-fatal.php(57): myFunction() +Allowed memory size of %s bytes exhausted (tried to allocate %s bytes) on {includePath}/tests/resources/trigger-fatal.php(23) #0 {includePath}/tests/resources/trigger-fatal.php(36): MyClass->triggerError(arg1="argval", arg2="another") #1 {includePath}/tests/resources/trigger-fatal.php(52): MyDerivedClass::staticMethod() #2 {includePath}/tests/resources/trigger-fatal.php(58): myFunction() FORMAT; $this->assertStringMatchesFormat($expectedFormat, $response['message']); |