8000 fix expected exception messages on PHP 8 · symfony/cache@a3e381d · GitHub
[go: up one dir, main page]

Skip to content

Commit a3e381d

Browse files
committed
fix expected exception messages on PHP 8
1 parent 4f1f1e2 commit a3e381d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Adapter/MemcachedAdapterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testBadOptions($name, $value)
7171
$this->expectExceptionMessage('constant(): Couldn\'t find constant Memcached::');
7272
} else {
7373
$this->expectException('Error');
74-
$this->expectExceptionMessage('Undefined class constant \'Memcached::');
74+
$this->expectExceptionMessage('Undefined constant Memcached::');
7575
}
7676

7777
MemcachedAdapter::createConnection([], [$name => $value]);

Tests/Simple/MemcachedCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function testBadOptions($name, $value)
8181
$this->expectExceptionMessage('constant(): Couldn\'t find constant Memcached::');
8282
} else {
8383
$this->expectException('Error');
84-
$this->expectExceptionMessage('Undefined class constant \'Memcached::');
84+
$this->expectExceptionMessage('Undefined constant Memcached::');
8585
}
8686

8787
MemcachedCache::createConnection([], [$name => $value]);

0 commit comments

Comments
 (0)
0