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

@ -43,7 +43,7 @@ class ErrorLayoutTest extends PHPUnit_Framework_TestCase
public function testSetException()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$layout = new ErrorLayout();
$layout->setException(new GeneralException());
$this->assertAttributeInstanceOf('GeneralException', 'exception', $layout);
@ -52,7 +52,7 @@ class ErrorLayoutTest extends PHPUnit_Framework_TestCase
public function testExecute()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$action = $this->getMock('Action', array('fetch'));
$action->expects($this->once())
->method('fetch')

View File

@ -43,7 +43,7 @@ class LayoutTest extends PHPUnit_Framework_TestCase
public function testConstruct()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$layout = $this->getMockForAbstractClass('Layout');
$this->assertAttributeInstanceOf('PHPView', 'view', $layout);
}
@ -51,7 +51,7 @@ class LayoutTest extends PHPUnit_Framework_TestCase
public function testFetch()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$layout = $this->getMockForAbstractClass('Layout');
$action = $this->getMock('Action', array('fetch'));
@ -65,7 +65,7 @@ class LayoutTest extends PHPUnit_Framework_TestCase
public function testFetchWithTemplate()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$layout = $this->getMockForAbstractClass('Layout');
$class = new ReflectionClass('Layout');
@ -89,7 +89,7 @@ class LayoutTest extends PHPUnit_Framework_TestCase
public function testAppend()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$layout = $this->getMockForAbstractClass('Layout', array('append', 'prepend'), 'LayoutMock');
$action = $this->getMock('Action', array('fetch'));