Neos\Cache\Tests\Unit\Frontend\VariableFrontendTest::getUsesIgBinaryIfAvailable PHP Method

getUsesIgBinaryIfAvailable() public method

    public function getUsesIgBinaryIfAvailable()
    {
        $theArray = ['Just some value', 'and another one.'];
        $backend = $this->prepareDefaultBackend();
        $backend->expects($this->once())->method('get')->will($this->returnValue(igbinary_serialize($theArray)));
        $cache = new VariableFrontend('VariableFrontend', $backend);
        $cache->initializeObject();
        $this->assertEquals($theArray, $cache->get('VariableCacheTest'), 'The returned value was not the expected unserialized array.');
    }