Change accepted exception type of unit test

Change the generic type Exception to a more specific one, to achieve
a more accurate test case.

resolves #4503
This commit is contained in:
Matthias Jentsch 2013-08-14 10:30:43 +02:00
parent 9799f4beab
commit 3ce44b72e1

View File

@ -125,7 +125,7 @@ class DbAdapterFactoryTest extends \PHPUnit_Framework_TestCase {
/** /**
* Test if an exception is thrown, when an invalid database is used. * Test if an exception is thrown, when an invalid database is used.
* *
* @expectedException \Exception * @expectedException Icinga\Exception\ConfigurationError
*/ */
public function testGetInvalidDatabase() public function testGetInvalidDatabase()
{ {
@ -135,7 +135,7 @@ class DbAdapterFactoryTest extends \PHPUnit_Framework_TestCase {
/** /**
* Test if an exception is thrown, when an invalid type is used. * Test if an exception is thrown, when an invalid type is used.
* *
* @expectedException \Exception * @expectedException Icinga\Exception\ConfigurationError
*/ */
public function testGetInvalidType() public function testGetInvalidType()
{ {