Moving setExpectedException
This commit is contained in:
@ -49,9 +49,8 @@ class DbTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testConnectWithWrongDriver()
|
||||
{
|
||||
$this->setExpectedException('InitializationException', 'Database driver must extends DbDriver');
|
||||
$this->getMock('NotDbDriver', array(), array(), 'NoDbDriverMock');
|
||||
$this->setExpectedException('InitializationException', 'Database driver must extends DbDriver');
|
||||
$driver = Db::connect('nodb', array('hostname' => 'localhost', 'driver' => 'NoDbDriverMock'));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user