From d5b211390fe5bdffbf61351d71e704021fb4f7c7 Mon Sep 17 00:00:00 2001 From: soyuka Date: Thu, 9 Apr 2020 19:51:19 +0200 Subject: [PATCH] [PhpUnitBridge] add PolyfillTestCaseTrait::expectExceptionMessageMatches to provide FC with recent phpunit versions --- Tests/Resource/DirectoryResourceTest.php | 2 +- Tests/Resource/FileResourceTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Resource/DirectoryResourceTest.php b/Tests/Resource/DirectoryResourceTest.php index aaadc8c4f..fbaed34a2 100644 --- a/Tests/Resource/DirectoryResourceTest.php +++ b/Tests/Resource/DirectoryResourceTest.php @@ -66,7 +66,7 @@ public function testGetPattern() public function testResourceDoesNotExist() { $this->expectException('InvalidArgumentException'); - $this->expectExceptionMessageRegExp('/The directory ".*" does not exist./'); + $this->expectExceptionMessageMatches('/The directory ".*" does not exist./'); new DirectoryResource('/____foo/foobar'.mt_rand(1, 999999)); } diff --git a/Tests/Resource/FileResourceTest.php b/Tests/Resource/FileResourceTest.php index f85a820fb..e3a45566c 100644 --- a/Tests/Resource/FileResourceTest.php +++ b/Tests/Resource/FileResourceTest.php @@ -56,7 +56,7 @@ public function testToString() public function testResourceDoesNotExist() { $this->expectException('InvalidArgumentException'); - $this->expectExceptionMessageRegExp('/The file ".*" does not exist./'); + $this->expectExceptionMessageMatches('/The file ".*" does not exist./'); new FileResource('/____foo/foobar'.mt_rand(1, 999999)); }