File tree 2 files changed +16
-4
lines changed
src/Symfony/Component/Cache/Tests
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,14 @@ public function testOptions()
66
66
*/
67
67
public function testBadOptions ($ name , $ value )
68
68
{
69
- $ this ->expectException ('ErrorException ' );
70
- $ this ->expectExceptionMessage ('constant(): Couldn \'t find constant Memcached:: ' );
69
+ if (\PHP_VERSION_ID < 80000 ) {
70
+ $ this ->expectException ('ErrorException ' );
71
+ $ this ->expectExceptionMessage ('constant(): Couldn \'t find constant Memcached:: ' );
72
+ } else {
73
+ $ this ->expectException ('Error ' );
74
+ $ this ->expectExceptionMessage ('Undefined class constant \'Memcached:: ' );
75
+ }
76
+
71
77
MemcachedAdapter::createConnection ([], [$ name => $ value ]);
72
78
}
73
79
Original file line number Diff line number Diff line change @@ -76,8 +76,14 @@ public function testOptions()
76
76
*/
77
77
public function testBadOptions ($ name , $ value )
78
78
{
79
- $ this ->expectException ('ErrorException ' );
80
- $ this ->expectExceptionMessage ('constant(): Couldn \'t find constant Memcached:: ' );
79
+ if (\PHP_VERSION_ID < 80000 ) {
80
+ $ this ->expectException ('ErrorException ' );
81
+ $ this ->expectExceptionMessage ('constant(): Couldn \'t find constant Memcached:: ' );
82
+ } else {
83
+ $ this ->expectException ('Error ' );
84
+ $ this ->expectExceptionMessage ('Undefined class constant \'Memcached:: ' );
85
+ }
86
+
81
87
MemcachedCache::createConnection ([], [$ name => $ value ]);
82
88
}
83
89
You can’t perform that action at this time.
0 commit comments