diff --git a/tests/lib/IntegrityCheck/CheckerTest.php b/tests/lib/IntegrityCheck/CheckerTest.php index c79f192a7f..631aec7c6b 100644 --- a/tests/lib/IntegrityCheck/CheckerTest.php +++ b/tests/lib/IntegrityCheck/CheckerTest.php @@ -110,7 +110,7 @@ class CheckerTest extends TestCase { public function testWriteAppSignatureWrongPermissions() { $this->expectException(\Exception::class); - $this->expectExceptionMessageRegExp('/[a-zA-Z\\/_-]+ is not writable/'); + $this->expectExceptionMessageMatches('/[a-zA-Z\\/_-]+ is not writable/'); $this->fileAccessHelper ->expects($this->once()) @@ -507,7 +507,7 @@ class CheckerTest extends TestCase { public function testWriteCoreSignatureWrongPermissions() { $this->expectException(\Exception::class); - $this->expectExceptionMessageRegExp('/[a-zA-Z\\/_-]+ is not writable/'); + $this->expectExceptionMessageMatches('/[a-zA-Z\\/_-]+ is not writable/'); $this->fileAccessHelper ->expects($this->at(0))