示例#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());
     }
 }