Skip to content

Commit 86310de

Browse files
committed
minor symfony#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 ------- 2c9af57 fix expected exception messages on PHP 8
2 parents 2abf876 + 2c9af57 commit 86310de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Cache/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]);

src/Symfony/Component/Cache/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)