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]);