Permalink
Browse files

add test for not exist adapter

  • Loading branch information...
1 parent d0787df commit 5fc361aba799290d35eac07b6ce48e9f96ab485e @ClemensSahs committed Jan 22, 2013
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/ZendTest/Mvc/Service/DbAdapterManagerTest.php
@@ -115,6 +115,17 @@ public function testInitDbAdapterAlias()
}
/**
+ * @expectedException Zend\Mvc\Service\Exception\DbAdapterManagerAdapterNotExist
+ */
+ public function testAdapterNotExist()
+ {
+ $dam = new DbAdapterManager();
+ $dam->addAdapterConfig( $this->sampleConfig );
+
+ $dam->getAdapter( 'dev_null' );
+ }
+
+ /**
* @expectedException Zend\Mvc\Service\Exception\DbAdapterManagerAdapterCoundInit
*/
public function testWrongAlias()

0 comments on commit 5fc361a

Please sign in to comment.