Skip to content
Browse files

repair unit test

- fix typo
- change the expected Exception for "testWrongAlias"
  • Loading branch information...
1 parent 885eb80 commit d0787df4adcfffea28499cae91abc7c4a97f4e5e @ClemensSahs committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 tests/ZendTest/Mvc/Service/DbAdapterManagerTest.php
View
10 tests/ZendTest/Mvc/Service/DbAdapterManagerTest.php
@@ -42,7 +42,7 @@ public function setUp()
),
'sqlliteDb2'=>'sqlliteDb',
'sqlliteDb3'=>'sqlliteDb2',
- 'wrongAliase'=>'dev_null',
+ 'wrongAlias'=>'dev_null',
'wrongConfig'=>array(
'driver'=>array()
),
@@ -98,7 +98,7 @@ public function testInitDbAdapter()
}
}
- public function testInitDbAdapterAliase()
+ public function testInitDbAdapterAlias()
{
$dam = new DbAdapterManager();
$dam->addAdapterConfig( $this->sampleConfig );
@@ -115,14 +115,14 @@ public function testInitDbAdapterAliase()
}
/**
- * @expectedException Zend\Mvc\Service\Exception\DbAdapterManagerAdapterNotExist
+ * @expectedException Zend\Mvc\Service\Exception\DbAdapterManagerAdapterCoundInit
*/
- public function testWrongAliase()
+ public function testWrongAlias()
{
$dam = new DbAdapterManager();
$dam->addAdapterConfig( $this->sampleConfig );
- $dam->getAdapter( 'wrongAliase' );
+ $dam->getAdapter( 'wrongAlias' );
}
/**

0 comments on commit d0787df

Please sign in to comment.
Something went wrong with that request. Please try again.