Browse Source

Replace values 1 to (bool)true in Config::set(PROFILER...) in majestic tests.

master
Alexander Demidov 13 years ago
parent
commit
a0010c3706
  1. 2
      tests/logger/CliLoggerTest.php
  2. 2
      tests/logger/FileLoggerTest.php

2
tests/logger/CliLoggerTest.php

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

2
tests/logger/FileLoggerTest.php

@ -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')) {

Loading…
Cancel
Save