public function setUp() { $this->_config = $this->_getConfig(); $this->_commonStorage = Factory::getAdapter($this->_config); }
public function testGetAdapterWithArray() { // No need to overdo it; we'll test the array config with just one adapter. $fileSystemConfig = array(Factory::STORAGE_ADAPTER_KEY => 'ZendCloud\\StorageService\\Adapter\\FileSystem', FileSystem::LOCAL_DIRECTORY => dirname(__FILE__) . "/_files/data"); $fileSystemAdapter = Factory::getAdapter($fileSystemConfig); $this->assertEquals('ZendCloud\\StorageService\\Adapter\\FileSystem', get_class($fileSystemAdapter)); }