Replace 0 to false and 1 to true in Config:;set(DEBUG...) in majestic tests.
This commit is contained in:
@ -57,7 +57,7 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
|
||||
*/
|
||||
public function testDriver()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
|
||||
$driver = new MySQLiDriver($this->conf);
|
||||
|
||||
@ -76,7 +76,7 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
|
||||
*/
|
||||
public function testGetConnection()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
|
||||
$driver = new MySQLiDriver($this->conf);
|
||||
$this->assertInstanceOf('mysqli', $driver->getConnection());
|
||||
@ -87,7 +87,7 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
|
||||
*/
|
||||
public function testGetConnectionWrongConfig()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$this->conf['database'] = 'nodb';
|
||||
$driver = new MySQLiDriver($this->conf);
|
||||
|
||||
@ -100,7 +100,7 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
|
||||
*/
|
||||
public function testDisconnect()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
|
||||
$driver = new MySQLiDriver($this->conf);
|
||||
|
||||
@ -117,7 +117,7 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
|
||||
*/
|
||||
public function testInsert()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
|
||||
$driver = new MySQLiDriver($this->conf);
|
||||
|
||||
@ -137,7 +137,7 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
|
||||
*/
|
||||
public function testGetInsertId()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
|
||||
$driver = new MySQLiDriver($this->conf);
|
||||
|
||||
@ -149,7 +149,7 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
|
||||
*/
|
||||
public function testTransaction()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
|
||||
$driver = new MySQLiDriver($this->conf);
|
||||
|
||||
@ -180,7 +180,7 @@ class MySQLiDriverTest extends PHPUnit_Extensions_Database_TestCase
|
||||
*/
|
||||
public function testRollback()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
|
||||
$driver = new MySQLiDriver($this->conf);
|
||||
|
||||
|
Reference in New Issue
Block a user