Example #1
0
 public function testGetAdapterWithConfig()
 {
     // SimpleDB adapter
     $simpleDbAdapter = DocumentFactory::getAdapter(new Config(SimpleDbTest::getConfigArray(), true));
     $this->assertEquals('ZendCloud\\DocumentService\\Adapter\\SimpleDb', get_class($simpleDbAdapter));
     // Azure adapter
     /*
     * Disable WindowsAzure test
             $azureAdapter = DocumentFactory::getAdapter(
                                new Config(WindowsAzureTest::getConfigArray(), true)
                            );
     
             $this->assertEquals('ZendCloud\DocumentService\Adapter\WindowsAzure', get_class($azureAdapter));
     */
 }
Example #2
0
 public function setUp()
 {
     $this->_config = $this->_getConfig();
     $this->_commonDocument = \ZendCloud\DocumentService\Factory::getAdapter($this->_config);
     parent::setUp();
 }