minor #37911 [Cache] fix expected exception message on PHP 8 (xabbuh)
This PR was merged into the 3.4 branch.
Discussion
----------
[Cache] fix expected exception message on PHP 8
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets |
| License | MIT
| Doc PR |
Commits
-------
2c9af570a2
fix expected exception messages on PHP 8
This commit is contained in:
commit
86310deed2
@ -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]);
|
||||
|
@ -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]);
|
||||
|
Reference in New Issue
Block a user