CacheTool\Proxy\ApcuProxyTest::testFunctions PHP Method

testFunctions() public method

public testFunctions ( )
    public function testFunctions()
    {
        $this->assertProxyCode("return apcu_add('key', 'var', 0);", 'apcu_add', array('key', 'var', 0));
        $this->assertProxyCode("return apcu_add(array (\n  'array_key' => 'array_var',\n), NULL, 0);", 'apcu_add', array(array('array_key' => 'array_var'), null, 0));
        $this->assertProxyCode("return apcu_cas('key', 'old', 'new');", 'apcu_cas', array('key', 'old', 'new'));
        $this->assertProxyCode("return apcu_cache_info(false);", 'apcu_cache_info', array(false));
        $this->assertProxyCode("return apcu_delete('key');", 'apcu_delete', array('key'));
        $this->assertProxyCode("return apcu_exists('keys');", 'apcu_exists', array('keys'));
        $this->assertProxyCode("return apcu_sma_info(false);", 'apcu_sma_info', array(false));
        $this->assertProxyCode("return apcu_store('key', 'var', 0);", 'apcu_store', array('key', 'var', 0));
        $this->assertProxyCode("return apcu_store(array (\n  'array_key' => 'array_var',\n), NULL, 0);", 'apcu_store', array(array('array_key' => 'array_var'), null, 0));
        $this->assertProxyCode('return phpversion("apcu");', 'apcu_version', array());
    }