Moving setExpectedException
This commit is contained in:
@ -39,8 +39,10 @@ class DbDriverTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function testConstructWrongConfig()
|
||||
{
|
||||
$this->setExpectedException('GeneralException', 'Configuration must have a "username"');
|
||||
$conf = array('hostname' => 'localhost', 'database' => 'db');
|
||||
|
||||
$this->setExpectedException('GeneralException', 'Configuration must have a "username"');
|
||||
|
||||
$this->getMockForAbstractClass('DbDriver', array($conf));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user