AssetManagerTest\Service\AssetCacheManagerTest::testGetProvider PHP Method

testGetProvider() public method

public testGetProvider ( )
    public function testGetProvider()
    {
        $serviceManager = new ServiceManager();
        $config = array('my/path' => array('cache' => 'Apc'));
        $assetManager = new AssetCacheManager($serviceManager, $config);
        $reflectionMethod = new \ReflectionMethod(AssetCacheManager::class, 'getProvider');
        $reflectionMethod->setAccessible(true);
        $provider = $reflectionMethod->invoke($assetManager, 'my/path');
        $this->assertTrue($provider instanceof CacheInterface);
    }