lithium\tests\integration\storage\cache\adapter\MemcacheTest::skip PHP Method

skip() public method

Skip the test if the adapter is enabled. If it is not it means the libmemcached extension is unavailable. Also checks for a running Memcached server.
public skip ( )
    public function skip()
    {
        $this->skipIf(!Memcache::enabled(), 'The `Memcache` adapter is not enabled.');
        $conn = new Memcached();
        $conn->addServer('127.0.0.1', 11211);
        $message = 'The memcached daemon does not appear to be running on 127.0.0.1:11211';
        $result = $conn->getVersion();
        $this->skipIf(!$result || current($result) === '255.255.255', $message);
        unset($conn);
    }