setCache() public method

Set the cache (if any) on the asset, and return the new AssetCache.
public setCache ( string $path, Assetic\Asset\AssetInterface $asset ) : Assetic\Asset\AssetCache
$path string Path to asset
$asset Assetic\Asset\AssetInterface Assetic Asset Interface
return Assetic\Asset\AssetCache
 /**
  * @covers \AssetManager\Service\AssetCacheManager::setCache
  */
 public function testSetCacheNoProviderFound()
 {
     $serviceManager = new ServiceManager();
     $config = array('my/path' => array('cache' => 'Apc'));
     $mockAsset = $this->getMockBuilder('\\Assetic\\Asset\\FileAsset')->disableOriginalConstructor()->getMock();
     $mockAsset->mimetype = 'image/png';
     $assetManager = new AssetCacheManager($serviceManager, $config);
     $assetCache = $assetManager->setCache('not/defined', $mockAsset);
     $this->assertFalse($assetCache instanceof AssetCache);
 }