@@ -9,24 +9,19 @@ class MemcachedCacheTest extends HackTest {
99 expect (() ==> {
1010 $cache = new MemcachedCache ();
1111 $mc = new Memcached (' mc' );
12- $mc -> addServers(darray (
13- array (' memcached' , 11211 )
14- ));
12+ $mc -> addServer(' memcached' , 11211 );
1513 expect ($cache -> fetch(" qwerty" ))-> toBeNull();
1614 })-> toThrow(InvariantException :: class );
1715 }
1816
1917 public function testFetchShouldReturnNull2 (): void {
2018 $cache = new MemcachedCache ();
2119 $mc = new Memcached (' mc' );
22- $mc -> addServers(darray (
23- array (' memcached' , 11211 )
24- ));
20+ $mc -> addServer(' memcached' , 11211 );
2521 $cache -> setMemcached($mc );
2622 expect ($cache -> fetch(" qwerty" ))-> toBeNull();
2723 $cache -> save(" qwerty" , new Element (' testing:cache' , 5 ));
2824 expect ($cache -> fetch(" qwerty" ))-> toBeSame(' testing:cache' );
29- expect ($cache -> fetch(" qwerty" ))-> toBeSame(' testing:cache' );
3025 $cache -> delete(" qwerty" );
3126 expect ($cache -> fetch(" qwerty" ))-> toBeNull();
3227 $cache -> save(" qwerty" , new Element (' testing:cache' , 5 ));
0 commit comments