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)); }
public function setUp() { $this->_config = $this->_getConfig(); $this->_commonQueue = Factory::getAdapter($this->_config); }