Пример #1
0
 public function testOpen()
 {
     $this->assertTrue($this->o->open());
     $z = new Memcache('tcp://localhost:55415');
     $this->assertFalse($z->open());
 }
Пример #2
0
 public function testGetAdapter()
 {
     if ($this->apc) {
         $this->assertEquals(new Cache\Apc(), $this->apc->getAdapter());
     }
     if ($this->mc) {
         $adapter = new Cache\Memcache();
         $adapter->open();
         $this->assertEquals($adapter, $this->mc->getAdapter());
     }
 }