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

@ -55,7 +55,7 @@ class FileLoggerTest extends PHPUnit_Framework_TestCase
*/
public function testCannotWrite()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$conf = array('logger' => 'FileLogger', 'filepath' => '/log.txt');
Config::set('Logger', $conf);
@ -70,7 +70,7 @@ class FileLoggerTest extends PHPUnit_Framework_TestCase
*/
public function testLog()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->assertFileNotExists($this->conf['filepath']);
$logger = Logger::getInstance();
$logger->setPid(123);
@ -83,7 +83,7 @@ class FileLoggerTest extends PHPUnit_Framework_TestCase
*/
public function testDestruct()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$my_pid = posix_getpid();
$fd_command = 'lsof -n -p ' . $my_pid . ' | wc -l';
$fd_count_start = (int) `$fd_command`;