public function testGetAdapter()
 {
     $adapter = Mockery::mock('League\\Flysystem\\AdapterInterface');
     $cache = Mockery::mock('League\\Flysystem\\Cached\\CacheInterface');
     $cache->shouldReceive('load')->once();
     $cached_adapter = new CachedAdapter($adapter, $cache);
     $this->assertInstanceOf('League\\Flysystem\\AdapterInterface', $cached_adapter->getAdapter());
 }
예제 #2
0
파일: Cached.php 프로젝트: bolt/filesystem
 /**
  * {@inheritdoc}
  */
 public function __construct(AdapterInterface $adapter, CacheInterface $cache)
 {
     parent::__construct($adapter, $cache);
     $this->cache = $cache;
 }