fix expected exception messages on PHP 8
This commit is contained in:
parent
c48b1d3b99
commit
2c9af570a2
@ -71,7 +71,7 @@ class MemcachedAdapterTest extends AdapterTestCase
|
|||||||
$this->expectExceptionMessage('constant(): Couldn\'t find constant Memcached::');
|
$this->expectExceptionMessage('constant(): Couldn\'t find constant Memcached::');
|
||||||
} else {
|
} else {
|
||||||
$this->expectException('Error');
|
$this->expectException('Error');
|
||||||
$this->expectExceptionMessage('Undefined class constant \'Memcached::');
|
$this->expectExceptionMessage('Undefined constant Memcached::');
|
||||||
}
|
}
|
||||||
|
|
||||||
MemcachedAdapter::createConnection([], [$name => $value]);
|
MemcachedAdapter::createConnection([], [$name => $value]);
|
||||||
|
@ -81,7 +81,7 @@ class MemcachedCacheTest extends CacheTestCase
|
|||||||
$this->expectExceptionMessage('constant(): Couldn\'t find constant Memcached::');
|
$this->expectExceptionMessage('constant(): Couldn\'t find constant Memcached::');
|
||||||
} else {
|
} else {
|
||||||
$this->expectException('Error');
|
$this->expectException('Error');
|
||||||
$this->expectExceptionMessage('Undefined class constant \'Memcached::');
|
$this->expectExceptionMessage('Undefined constant Memcached::');
|
||||||
}
|
}
|
||||||
|
|
||||||
MemcachedCache::createConnection([], [$name => $value]);
|
MemcachedCache::createConnection([], [$name => $value]);
|
||||||
|
Reference in New Issue
Block a user