File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
src/Symfony/Component/Cache/Tests Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,14 @@ public function testOptions()
6666 */
6767 public function testBadOptions ($ name , $ value )
6868 {
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+
7177 MemcachedAdapter::createConnection ([], [$ name => $ value ]);
7278 }
7379
Original file line number Diff line number Diff line change @@ -76,8 +76,14 @@ public function testOptions()
7676 */
7777 public function testBadOptions ($ name , $ value )
7878 {
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+
8187 MemcachedCache::createConnection ([], [$ name => $ value ]);
8288 }
8389
You can’t perform that action at this time.
0 commit comments