/**
  * @test
  */
 public function getFetchesStringValueFromBackend()
 {
     $backend = $this->getMockBuilder(\TYPO3\Flow\Cache\Backend\AbstractBackend::class)->disableOriginalConstructor()->setMethods(array('get', 'set', 'has', 'remove', 'findIdentifiersByTag', 'flush', 'flushByTag', 'collectGarbage'))->getMock();
     $backend->expects($this->once())->method('get')->will($this->returnValue('Just some value'));
     $cache = new \TYPO3\Flow\Cache\Frontend\StringFrontend('StringFrontend', $backend);
     $this->assertEquals('Just some value', $cache->get('StringCacheTest'), 'The returned value was not the expected string.');
 }
 /**
  * @test
  */
 public function getFetchesStringValueFromBackend()
 {
     $backend = $this->getMock('TYPO3\\Flow\\Cache\\Backend\\AbstractBackend', array('get', 'set', 'has', 'remove', 'findIdentifiersByTag', 'flush', 'flushByTag', 'collectGarbage'), array(), '', FALSE);
     $backend->expects($this->once())->method('get')->will($this->returnValue('Just some value'));
     $cache = new \TYPO3\Flow\Cache\Frontend\StringFrontend('StringFrontend', $backend);
     $this->assertEquals('Just some value', $cache->get('StringCacheTest'), 'The returned value was not the expected string.');
 }