/**
  * @test
  * @requires extension igbinary
  */
 public function setUsesIgBinarySerializeIfAvailable()
 {
     $theString = 'Just some value';
     $backend = $this->getMock(\TYPO3\Flow\Cache\Backend\AbstractBackend::class, array('get', 'set', 'has', 'remove', 'findIdentifiersByTag', 'flush', 'flushByTag', 'collectGarbage'), array(), '', false);
     $backend->expects($this->once())->method('set')->with($this->equalTo('VariableCacheTest'), $this->equalTo(igbinary_serialize($theString)));
     $cache = new \TYPO3\Flow\Cache\Frontend\VariableFrontend('VariableFrontend', $backend);
     $cache->initializeObject();
     $cache->set('VariableCacheTest', $theString);
 }
 /**
  * @test
  */
 public function setUsesIgBinarySerializeIfAvailable()
 {
     if (!extension_loaded('igbinary')) {
         $this->markTestSkipped('Cannot test igbinary support, because igbinary is not installed.');
     }
     $theString = 'Just some value';
     $backend = $this->getMock('TYPO3\\Flow\\Cache\\Backend\\AbstractBackend', array('get', 'set', 'has', 'remove', 'findIdentifiersByTag', 'flush', 'flushByTag', 'collectGarbage'), array(), '', FALSE);
     $backend->expects($this->once())->method('set')->with($this->equalTo('VariableCacheTest'), $this->equalTo(igbinary_serialize($theString)));
     $cache = new \TYPO3\Flow\Cache\Frontend\VariableFrontend('VariableFrontend', $backend);
     $cache->initializeObject();
     $cache->set('VariableCacheTest', $theString);
 }