fix expected exception messages on PHP 8

This commit is contained in:
Christian Flothmann 2020-08-21 15:18:27 +02:00
parent c48b1d3b99
commit 2c9af570a2
2 changed files with 2 additions and 2 deletions

View File

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

View File

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