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

@ -38,7 +38,7 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
*/
public function testGetInstaceNoDebug()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$this->setExpectedException('GeneralException', 'Need to turn on DEBUG before use.');
Profiler::getInstance();
}
@ -48,7 +48,7 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
*/
public function testGetInstance()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$profiler = Profiler::getInstance();
$this->assertInstanceOf('Profiler', $profiler);
$this->assertSame($profiler, Profiler::getInstance());
@ -59,7 +59,7 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
*/
public function testProfilerCommand()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->getMock('CommandProfiler', array('getType', 'getCommand', 'getElapsed'), array(), 'CommandProfilerMock', false);
$profiler = Profiler::getInstance();
$cmdProfiler = $profiler->profilerCommand('command', 'type');
@ -71,7 +71,7 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
*/
public function testStartEndNoCommandProfiler()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$profiler = Profiler::getInstance();
$profiler->start();
$result = $profiler->end('<body></body>');
@ -89,7 +89,7 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
*/
public function testStartEndWithCommandProfiler()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->getMock('CommandProfiler', array('getType', 'getCommand', 'getElapsed'), array(), 'CommandProfilerMock', false);
$profiler = Profiler::getInstance();
@ -107,7 +107,7 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
*/
public function testGetJSON()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->getMock('CommandProfiler', array('getType', 'getCommand', 'getElapsed'), array(), 'CommandProfilerMock', false);
$profiler = Profiler::getInstance();
@ -120,7 +120,7 @@ class ProfilerTest extends PHPUnit_Framework_TestCase
*/
public function testGetCLI()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->getMock('CommandProfiler', array('getType', 'getCommand', 'getElapsed'), array(), 'CommandProfilerMock', false);
$profiler = Profiler::getInstance();