From 2c9af570a2f9c0c8e1a340b590a9d4e7b1c319a0 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 21 Aug 2020 15:18:27 +0200 Subject: [PATCH] fix expected exception messages on PHP 8 --- .../Component/Cache/Tests/Adapter/MemcachedAdapterTest.php | 2 +- src/Symfony/Component/Cache/Tests/Simple/MemcachedCacheTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Cache/Tests/Adapter/MemcachedAdapterTest.php b/src/Symfony/Component/Cache/Tests/Adapter/MemcachedAdapterTest.php index 8fe807f880..c89aa5188a 100644 --- a/src/Symfony/Component/Cache/Tests/Adapter/MemcachedAdapterTest.php +++ b/src/Symfony/Component/Cache/Tests/Adapter/MemcachedAdapterTest.php @@ -71,7 +71,7 @@ class MemcachedAdapterTest extends AdapterTestCase $this->expectExceptionMessage('constant(): Couldn\'t find constant Memcached::'); } else { $this->expectException('Error'); - $this->expectExceptionMessage('Undefined class constant \'Memcached::'); + $this->expectExceptionMessage('Undefined constant Memcached::'); } MemcachedAdapter::createConnection([], [$name => $value]); diff --git a/src/Symfony/Component/Cache/Tests/Simple/MemcachedCacheTest.php b/src/Symfony/Component/Cache/Tests/Simple/MemcachedCacheTest.php index 92fc7d2a87..b24289f6a6 100644 --- a/src/Symfony/Component/Cache/Tests/Simple/MemcachedCacheTest.php +++ b/src/Symfony/Component/Cache/Tests/Simple/MemcachedCacheTest.php @@ -81,7 +81,7 @@ class MemcachedCacheTest extends CacheTestCase $this->expectExceptionMessage('constant(): Couldn\'t find constant Memcached::'); } else { $this->expectException('Error'); - $this->expectExceptionMessage('Undefined class constant \'Memcached::'); + $this->expectExceptionMessage('Undefined constant Memcached::'); } MemcachedCache::createConnection([], [$name => $value]);