From 8aba4dc172e95918ca876527c2a224acb53da563 Mon Sep 17 00:00:00 2001 From: Vyacheslav Agafonov Date: Thu, 1 Dec 2011 17:36:20 +0400 Subject: [PATCH] added check --- tests/layout/LayoutTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/layout/LayoutTest.php b/tests/layout/LayoutTest.php index ebc2015..603a741 100644 --- a/tests/layout/LayoutTest.php +++ b/tests/layout/LayoutTest.php @@ -92,10 +92,14 @@ class LayoutTest extends PHPUnit_Framework_TestCase if (!defined('DEBUG')) { define('DEBUG', false); } - $layout = $this->getMockForAbstractClass('Layout'); + $layout = $this->getMockForAbstractClass('Layout', array('append', 'prepend'), 'LayoutMock'); $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->setAccessible(true);