public function testOpen() { $this->assertTrue($this->o->open()); $z = new Memcache('tcp://localhost:55415'); $this->assertFalse($z->open()); }
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()); } }