/** * @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); }