Replace 0 to false and 1 to true in Config:;set(DEBUG...) in majestic tests.
This commit is contained in:
@ -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`;
|
||||
|
Reference in New Issue
Block a user