Replace values 1 to (bool)true in Config::set(PROFILER...) in majestic tests.
This commit is contained in:
@ -44,7 +44,7 @@ class CliLoggerTest extends PHPUnit_Framework_TestCase
|
|||||||
public function testLog()
|
public function testLog()
|
||||||
{
|
{
|
||||||
|
|
||||||
Config::set('LOGGING', 1);
|
Config::set('LOGGING', true);
|
||||||
Config::set('Logger', array('logger' => 'CliLogger'));
|
Config::set('Logger', array('logger' => 'CliLogger'));
|
||||||
$logger = Logger::getInstance();
|
$logger = Logger::getInstance();
|
||||||
ob_start();
|
ob_start();
|
||||||
|
@ -33,7 +33,7 @@ class FileLoggerTest extends PHPUnit_Framework_TestCase
|
|||||||
vfsStream::setup();
|
vfsStream::setup();
|
||||||
$root = vfsStream::create(array());
|
$root = vfsStream::create(array());
|
||||||
vfsStreamWrapper::setRoot($root);
|
vfsStreamWrapper::setRoot($root);
|
||||||
Config::set('LOGGING', 1);
|
Config::set('LOGGING', true);
|
||||||
$this->conf = array('logger' => 'FileLogger', 'filepath' => vfsStream::url('root/log.txt'));
|
$this->conf = array('logger' => 'FileLogger', 'filepath' => vfsStream::url('root/log.txt'));
|
||||||
Config::set('Logger', $this->conf);
|
Config::set('Logger', $this->conf);
|
||||||
if ($root->hasChild('log.txt')) {
|
if ($root->hasChild('log.txt')) {
|
||||||
|
Reference in New Issue
Block a user