|
@ -92,10 +92,14 @@ class LayoutTest extends PHPUnit_Framework_TestCase |
|
|
if (!defined('DEBUG')) { |
|
|
if (!defined('DEBUG')) { |
|
|
define('DEBUG', false); |
|
|
define('DEBUG', false); |
|
|
} |
|
|
} |
|
|
$layout = $this->getMockForAbstractClass('Layout'); |
|
|
|
|
|
|
|
|
$layout = $this->getMockForAbstractClass('Layout', array('append', 'prepend'), 'LayoutMock'); |
|
|
$action = $this->getMock('Action', array('fetch')); |
|
|
$action = $this->getMock('Action', array('fetch')); |
|
|
|
|
|
|
|
|
$class = new ReflectionClass('Layout'); |
|
|
|
|
|
|
|
|
$action->expects($this->exactly(3)) |
|
|
|
|
|
->method('fetch') |
|
|
|
|
|
->will($this->returnValue(true)); |
|
|
|
|
|
|
|
|
|
|
|
$class = new ReflectionClass('LayoutMock'); |
|
|
|
|
|
|
|
|
$method = $class->getMethod('append'); |
|
|
$method = $class->getMethod('append'); |
|
|
$method->setAccessible(true); |
|
|
$method->setAccessible(true); |
|
|