Beispiel #1
0
 public function testGetAdapterWithArray()
 {
     // No need to overdo it; we'll test the array config with just one adapter.
     $zqConfig = array(Factory::QUEUE_ADAPTER_KEY => 'Zend\\Cloud\\QueueService\\Adapter\\ZendQueue', \Zend\Cloud\QueueService\Adapter\ZendQueue::ADAPTER => "ArrayAdapter");
     $zq = Factory::getAdapter($zqConfig);
     $this->assertEquals('Zend\\Cloud\\QueueService\\Adapter\\ZendQueue', get_class($zq));
 }
Beispiel #2
0
 public function setUp()
 {
     $this->_config = $this->_getConfig();
     $this->_commonQueue = Factory::getAdapter($this->_config);
 }