コード例 #1
0
ファイル: FactoryTest.php プロジェクト: robertodormepoco/zf2
 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));
 }
コード例 #2
0
ファイル: TestCase.php プロジェクト: bradley-holt/zf2
 public function setUp()
 {
     $this->_config = $this->_getConfig();
     $this->_commonQueue = Factory::getAdapter($this->_config);
 }