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

@ -25,7 +25,7 @@ class EnvTest extends PHPUnit_Framework_TestCase
public function testGetRequestUri()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$_SERVER['REQUEST_URI'] = '/test/index.php?id=1&test=wet&id_theme=512';
$this->assertSame('/test/index.php', Env::getRequestUri());
$_SERVER['REQUEST_URI'] = '/tes?t/index.php?id=1&test=wet&id_theme=512';
@ -38,7 +38,7 @@ class EnvTest extends PHPUnit_Framework_TestCase
public function testTrimBaseRequestUri()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$class = new ReflectionClass('Env');
$this->started = $class->getProperty('request');
$this->started->setAccessible(true);