Replace 0 to false and 1 to true in Config:;set(DEBUG...) in majestic tests.

This commit is contained in:
Alexander Demidov
2012-07-09 13:47:32 +04:00
parent dc60d703bf
commit b6a2c4dbc3
18 changed files with 101 additions and 101 deletions

View File

@ -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);