Esempio n. 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 => 'ZendCloud\\QueueService\\Adapter\\ZendQueue', \ZendCloud\QueueService\Adapter\ZendQueue::ADAPTER => "ArrayAdapter");
     $zq = Factory::getAdapter($zqConfig);
     $this->assertEquals('ZendCloud\\QueueService\\Adapter\\ZendQueue', get_class($zq));
 }
Esempio n. 2
0
 public function setUp()
 {
     $this->_config = $this->_getConfig();
     $this->_commonQueue = Factory::getAdapter($this->_config);
 }