replacement @expectedException to setExpectedException
This commit is contained in:
@ -80,16 +80,13 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
|
||||
$this->assertTrue($driver->isConnected());
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException GeneralException
|
||||
* @expectedExceptionMessage Unknown database
|
||||
*/
|
||||
public function testGetConnectionWrongConfig()
|
||||
{
|
||||
if (!defined('DEBUG')) {
|
||||
define('DEBUG', false);
|
||||
}
|
||||
|
||||
$this->setExpectedException('GeneralException', 'Unknown database \'nodb\'');
|
||||
$this->conf['database'] = 'nodb';
|
||||
$driver = new MySQLiDriver($this->conf);
|
||||
$this->assertNull('mysqli', $driver->getConnection());
|
||||
|
Reference in New Issue
Block a user