assertTrue(is_string(Zend_Cloud_DocumentService_Factory::DOCUMENT_ADAPTER_KEY)); } public function testGetAdapterWithConfig() { // SimpleDB adapter $simpleDbAdapter = Zend_Cloud_DocumentService_Factory::getAdapter( new Zend_Config(Zend_Cloud_DocumentService_Adapter_SimpleDbTest::getConfigArray()) ); $this->assertEquals('Zend_Cloud_DocumentService_Adapter_SimpleDb', get_class($simpleDbAdapter)); // Azure adapter $azureAdapter = Zend_Cloud_DocumentService_Factory::getAdapter( new Zend_Config(Zend_Cloud_DocumentService_Adapter_WindowsAzureTest::getConfigArray()) ); $this->assertEquals('Zend_Cloud_DocumentService_Adapter_WindowsAzure', get_class($azureAdapter)); } } // Call Zend_Cloud_DocumentService_FactoryTest::main() if this source file is executed directly. if (PHPUnit_MAIN_METHOD == "Zend_Cloud_DocumentService_FactoryTest::main") { Zend_Cloud_DocumentService_FactoryTest::main(); }