Changeset 1262

Show
Ignore:
Timestamp:
01/18/08 17:38:43 (10 months ago)
Author:
mikey
Message:

continued refactoring #118: transformed tests for net::stubbles::websites::memphis (part 1)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/test/php/net/stubbles/websites/WebsitesTestSuite.php

    r1256 r1262  
    77 * @subpackage  test 
    88 */ 
     9if (defined('TEST_SRC_PATH') === false) { 
     10    define('TEST_SRC_PATH', dirname(__FILE__) . '/../../../../'); 
     11} 
    912/** 
    1013 * Test suite for all websites classes. 
     
    3437 
    3538        // memphis tests 
    36         /*$suite->addTestFile($dir . '/memphis/stubMemphisIncludeFilePageElementTestCase.php'); 
     39        $suite->addTestFile($dir . '/memphis/stubMemphisIncludeFilePageElementTestCase.php'); 
    3740        $suite->addTestFile($dir . '/memphis/stubMemphisPageElementTestCase.php'); 
    38         $suite->addTestFile($dir . '/memphis/stubMemphisProcessorTestCase.php');*/ 
     41        $suite->addTestFile($dir . '/memphis/stubMemphisProcessorTestCase.php'); 
    3942 
    4043        // processors tests 
  • trunk/src/test/php/net/stubbles/websites/memphis/stubMemphisIncludeFilePageElementTestCase.php

    r1231 r1262  
    1414 * @subpackage  websites_memphis_test 
    1515 */ 
    16 class stubMemphisIncludeFilePageElementTestCase extends UnitTestCase 
     16class stubMemphisIncludeFilePageElementTestCase extends PHPUnit_Framework_TestCase 
    1717{ 
    1818    /** 
     
    3333    /** 
    3434     * assure that setting and getting the name of the element works as expected 
     35     * 
     36     * @test 
    3537     */ 
    36     public function testName() 
     38    public function name() 
    3739    { 
    38         $this->assertEqual($this->includeFilePageElement->getName(), ''); 
     40        $this->assertEquals('', $this->includeFilePageElement->getName()); 
    3941        $this->includeFilePageElement->setName('foo'); 
    40         $this->assertEqual($this->includeFilePageElement->getName(), 'foo'); 
     42        $this->assertEquals('foo', $this->includeFilePageElement->getName()); 
    4143    } 
    4244 
    4345    /** 
    4446     * assure that setting and getting the source of the element works as expected 
     47     * 
     48     * @test 
    4549     */ 
    46     public function testSource() 
     50    public function source() 
    4751    { 
    48         $this->assertEqual($this->includeFilePageElement->getSource(), ''); 
     52        $this->assertEquals('', $this->includeFilePageElement->getSource()); 
    4953        $this->includeFilePageElement->setSource(TEST_SRC_PATH . '/resources/contentFile.txt'); 
    50         $this->assertEqual($this->includeFilePageElement->getSource(), TEST_SRC_PATH . '/resources/contentFile.txt'); 
    51         $this->expectException('stubFileNotFoundException'); 
     54        $this->assertEquals(TEST_SRC_PATH . '/resources/contentFile.txt', $this->includeFilePageElement->getSource()); 
     55    } 
     56 
     57    /** 
     58     * assure that setting and getting the source of the element works as expected 
     59     * 
     60     * @test 
     61     * @expectedException  stubFileNotFoundException 
     62     */ 
     63    public function setSourceToNonExistingFileThrowsFileNotFoundException() 
     64    { 
    5265        $this->includeFilePageElement->setSource(TEST_SRC_PATH . '/resources/doesNotExist'); 
    5366    } 
     
    5568    /** 
    5669     * assure that processing works as expected 
     70     * 
     71     * @test 
    5772     */ 
    58     public function testProcess() 
     73    public function process() 
    5974    { 
    6075        $this->includeFilePageElement->setSource(TEST_SRC_PATH . '/resources/contentFile.txt'); 
    61         $this->assertEqual($this->includeFilePageElement->process(), 'This is the content.'); 
     76        $this->assertEquals('This is the content.', $this->includeFilePageElement->process()); 
    6277    } 
    6378} 
  • trunk/src/test/php/net/stubbles/websites/memphis/stubMemphisPageElementTestCase.php

    r1231 r1262  
    88 */ 
    99stubClassLoader::load('net::stubbles::websites::memphis::stubMemphisPageElement'); 
    10 Mock::generate('stubRequest'); 
    11 Mock::generate('stubSession'); 
    12 Mock::generate('stubResponse'); 
    1310/** 
    1411 * Class to get a non-abstract class to test. 
     
    3532 * @subpackage  websites_memphis_test 
    3633 */ 
    37 class stubMemphisPageElementTestCase extends UnitTestCase 
     34class stubMemphisPageElementTestCase extends PHPUnit_Framework_TestCase 
    3835{ 
    3936    /** 
     
    4643     * mocked request instance 
    4744     * 
    48      * @var  SimpleMock 
     45     * @var  PHPUnit_Framework_MockObject_MockObject 
    4946     */ 
    5047    protected $mockRequest; 
     
    5249     * mocked session instance 
    5350     * 
    54      * @var  SimpleMock 
     51     * @var  PHPUnit_Framework_MockObject_MockObject 
    5552     */ 
    5653    protected $mockSession; 
     
    5855     * mocked response instance 
    5956     * 
    60      * @var  SimpleMock 
     57     * @var  PHPUnit_Framework_MockObject_MockObject 
    6158     */ 
    6259    protected $mockResponse; 
     
    6764    public function setUp() 
    6865    { 
    69         $this->mockRequest        = new MockstubRequest(); 
    70         $this->mockSession        = new MockstubSession(); 
    71         $this->mockResponse       = new MockstubResponse(); 
     66        $this->mockRequest        = $this->getMock('stubRequest'); 
     67        $this->mockSession        = $this->getMock('stubSession'); 
     68        $this->mockResponse       = $this->getMock('stubResponse'); 
    7269        $this->memphisPageElement = new TeststubMemphisPageElement(); 
    7370    } 
     
    7572    /** 
    7673     * assure that a memphis page element is always available for the correct part 
     74     * 
     75     * @test 
    7776     */ 
    78     public function testIsAvailable() 
     77    public function isAvailable() 
    7978    { 
    8079        $context = array('part' => 'dummy'); 
  • trunk/src/test/php/net/stubbles/websites/memphis/stubMemphisProcessorTestCase.php

    r1249 r1262  
    88 */ 
    99stubClassLoader::load('net::stubbles::websites::memphis::stubMemphisProcessor'); 
    10 Mock::generate('stubRequest'); 
    11 Mock::generate('stubSession'); 
    12 Mock::generate('stubPage'); 
    13 Mock::generate('stubPageElement'); 
    14 Mock::generate('stubPageFactory'); 
    15 Mock::generate('stubMemphisConfig'); 
    16 Mock::generate('stubMemphisTemplate'); 
    17 Mock::generate('stubWebsiteCache'); 
    18 Mock::generatePartial('stubMemphisProcessor', 
    19                       'PartialMockstubMemphisProcessor', 
    20                       array('createTemplate', 
    21                             'getPageName', 
    22                             'getFrameId', 
    23                             'processCacheVars', 
    24                             'setTemplateVars', 
    25                             'processPageElements' 
    26                       ) 
    27 ); 
     10class TeststubMemphisConfig extends stubMemphisConfig 
     11
     12    public function __construct() { } 
     13
     14class TeststubMemphisTemplate extends stubMemphisTemplate 
     15
     16    /** 
     17     * constructor 
     18     * 
     19     * @param  string  $baseDir     directory where template files can be found 
     20     * @param  array   $namespaces  optional  namespaces for patTemplate tags, default patTemplate 
     21     * @param  array   $options     optional  configuration options for patTemplate 
     22     */ 
     23    public function __construct($baseDir, array $namespaces = array(), array $options = array()) { } 
     24
    2825/** 
    2926 * Extend tested class to be able to inject mock instances. 
     
    140137 * @subpackage  websites_memphis_test 
    141138 */ 
    142 class TestPartialMockstubMemphisProcessor extends PartialMockstubMemphisProcessor 
     139class Test2stubMemphisProcessor extends stubMemphisProcessor 
    143140{ 
    144141    /** 
     
    156153        $this->response    = $response; 
    157154        $this->pageFactory = $pageFactory; 
    158         parent::__construct(); 
    159155    } 
    160156 
     
    186182 * @subpackage  websites_memphis_test 
    187183 */ 
    188 class stubMemphisProcessorTestCase extends UnitTestCase 
     184class stubMemphisProcessorTestCase extends PHPUnit_Framework_TestCase 
    189185{ 
    190186    /** 
     
    197193     * mocked request instance 
    198194     * 
    199      * @var  SimpleMock 
     195     * @var  PHPUnit_Framework_MockObject_MockObject 
    200196     */ 
    201197    protected $mockRequest; 
     
    203199     * mocked session instance 
    204200     * 
    205      * @var  SimpleMock 
     201     * @var  PHPUnit_Framework_MockObject_MockObject 
    206202     */ 
    207203    protected $mockSession; 
     
    209205     * mocked response instance 
    210206     * 
    211      * @var  SimpleMock 
     207     * @var  PHPUnit_Framework_MockObject_MockObject 
    212208     */ 
    213209    protected $mockResponse; 
     
    215211     * mocked page factory instance 
    216212     * 
    217      * @var  SimpleMock 
     213     * @var  PHPUnit_Framework_MockObject_MockObject 
    218214     */ 
    219215    protected $mockPageFactory; 
     
    221217     * mocked page configuration instance 
    222218     * 
    223      * @var  SimpleMock 
     219     * @var  PHPUnit_Framework_MockObject_MockObject 
    224220     */ 
    225221    protected $mockPage; 
     
    227223     * mocked memphis config instance 
    228224     * 
    229      * @var  SimpleMock 
     225     * @var  PHPUnit_Framework_MockObject_MockObject 
    230226     */ 
    231227    protected $mockMemphisConfig; 
     
    233229     * mocked memphis template instance 
    234230     * 
    235      * @var  SimpleMock 
     231     * @var  PHPUnit_Framework_MockObject_MockObject 
    236232     */ 
    237233    protected $mockMemphisTemplate; 
     
    242238    public function setUp() 
    243239    { 
    244         $this->mockRequest       = new MockstubRequest(); 
    245         $this->mockSession       = new MockstubSession(); 
    246         $this->mockResponse      = new MockstubResponse(); 
    247         $this->mockPageFactory   = new MockstubPageFactory(); 
     240        $this->mockRequest       = $this->getMock('stubRequest'); 
     241        $this->mockSession       = $this->getMock('stubSession'); 
     242        $this->mockResponse      = $this->getMock('stubResponse'); 
     243        $this->mockPageFactory   = $this->getMock('stubPageFactory'); 
    248244        $this->memphisProcessor  = new TeststubMemphisProcessor($this->mockRequest, $this->mockSession, $this->mockResponse, $this->mockPageFactory); 
    249         $this->mockMemphisConfig = new MockstubMemphisConfig(); 
     245        $this->mockMemphisConfig = $this->getMock('TeststubMemphisConfig'); 
    250246        $this->memphisProcessor->setConfig($this->mockMemphisConfig); 
    251         $this->mockMemphisTemplate = new MockstubMemphisTemplate(); 
     247        $this->mockMemphisTemplate = $this->getMock('TeststubMemphisTemplate', array(), array('')); 
    252248        $this->memphisProcessor->setTemplate($this->mockMemphisTemplate); 
    253         $this->mockPage = new MockstubPage(); 
    254         $this->mockPageFactory->setReturnValue('getPage', $this->mockPage); 
     249        $this->mockPage = $this->getMock('stubPage'); 
     250        $this->mockPageFactory->expects($this->any())->method('getPage')->will($this->returnValue($this->mockPage)); 
    255251    } 
    256252 
     
    260256    public function testDoProcessWithoutCache() 
    261257    { 
    262         $memphisProcessor = new TestPartialMockstubMemphisProcessor($this->mockRequest, $this->mockSession, $this->mockResponse, $this->mockPageFactory); 
     258        $memphisProcessor = $this->getMock('Test2stubMemphisProcessor', 
     259                                           array('createTemplate', 
     260                                                 'getPageName', 
     261                                                 'getFrameId', 
     262                                                 'processCacheVars', 
     263                                                 'setTemplateVars', 
     264                                                 'processPageElements' 
     265                                           ), 
     266                                           array($this->mockRequest, 
     267                                                 $this->mockSession, 
     268                                                 $this->mockResponse, 
     269                                                 $this->mockPageFactory 
     270                                           ) 
     271                            ); 
    263272        $memphisProcessor->setConfig($this->mockMemphisConfig); 
    264         $memphisProcessor->setReturnValue('createTemplate', $this->mockMemphisTemplate); 
    265         $memphisProcessor->setReturnValue('getPageName', 'foo'); 
    266         $memphisProcessor->setReturnValue('getFrameId', 'bar'); 
    267         $mockPageElement = new MockstubPageElement(); 
    268         $this->mockPage->setReturnValue('getElements', array('baz' => $mockPageElement)); 
    269         $memphisProcessor->expectNever('processCacheVars'); 
    270         $this->mockMemphisConfig->expectOnce('getFrame', array('bar')); 
    271         $this->mockMemphisConfig->setReturnValue('getFrame', 'frame/default.tmpl'); 
    272         $this->mockMemphisTemplate->expectOnce('readTemplatesFromInput', array('frame/default.tmpl')); 
    273         $memphisProcessor->expectOnce('setTemplateVars', array('*', 'foo', 'bar')); 
    274         $memphisProcessor->expectOnce('processPageElements', array('*', array('baz' => $mockPageElement), '*')); 
    275         $this->mockResponse->expectNever('getData'); 
    276         $this->mockResponse->expectNever('replaceData'); 
     273        $memphisProcessor->expects($this->once())->method('createTemplate')->will($this->returnValue($this->mockMemphisTemplate)); 
     274        $memphisProcessor->expects($this->any())->method('getPageName')->will($this->returnValue('foo')); 
     275        $memphisProcessor->expects($this->any())->method('getFrameId')->will($this->returnValue('bar')); 
     276        $mockPageElement = $this->getMock('stubPageElement'); 
     277        $this->mockPage->expects($this->any())->method('getElements')->will($this->returnValue(array('baz' => $mockPageElement))); 
     278        $memphisProcessor->expects($this->never())->method('processCacheVars'); 
     279        $this->mockMemphisConfig->expects($this->once())->method('getFrame')->with($this->equalTo('bar'))->will($this->returnValue('frame/default.tmpl')); 
     280        $this->mockMemphisTemplate->expects($this->once())->method('readTemplatesFromInput')->with($this->equalTo('frame/default.tmpl')); 
     281        $memphisProcessor->expects($this->once())->method('setTemplateVars'); 
     282        $memphisProcessor->expects($this->once())->method('processPageElements'); 
     283        $this->mockResponse->expects($this->never())->method('getData'); 
     284        $this->mockResponse->expects($this->never())->method('replaceData'); 
    277285        $memphisProcessor->callDoProcess($this->mockPage, 'foo'); 
    278286    } 
     
    281289     * test the processing algorithm using a cache 
    282290     */ 
    283     public function testDoProcessWithCacheButUncached() 
    284     { 
    285         $memphisProcessor = new TestPartialMockstubMemphisProcessor($this->mockRequest, $this->mockSession, $this->mockResponse, $this->mockPageFactory); 
     291    /*public function testDoProcessWithCacheButUncached() 
     292    { 
     293        $memphisProcessor = $this->getMock('Test2stubMemphisProcessor', 
     294                                           array('createTemplate', 
     295                                                 'getPageName', 
     296                                                 'getFrameId', 
     297                                                 'processCacheVars', 
     298                                                 'setTemplateVars', 
     299                                                 'processPageElements' 
     300                                           ), 
     301                                           array($this->mockRequest, 
     302                                                 $this->mockSession, 
     303                                                 $this->mockResponse, 
     304                                                 $this->mockPageFactory 
     305                                           ) 
     306                            ); 
    286307        $memphisProcessor->setConfig($this->mockMemphisConfig); 
    287         $memphisProcessor->setReturnValue('createTemplate', $this->mockMemphisTemplate); 
    288         $memphisProcessor->setReturnValue('getPageName', 'foo'); 
    289         $memphisProcessor->setReturnValue('getFrameId', 'bar'); 
    290         $mockPageElement = new MockstubPageElement(); 
    291         $this->mockPage->setReturnValue('getElements', array('baz' => $mockPageElement)); 
     308        $memphisProcessor->expects($this->once())->method('createTemplate')->will($this->returnValue($this->mockMemphisTemplate)); 
     309        $memphisProcessor->expects($this->any())->method('getPageName')->will($this->returnValue('foo')); 
     310        $memphisProcessor->expects($this->any())->method('getFrameId')->will($this->returnValue('bar')); 
     311        $mockPageElement = $this->getMock('stubPageElement'); 
     312        $this->mockPage->expects($this->any())->method('getElements')->will($this->returnValue(array('baz' => $mockPageElement))); 
     313// start here         
    292314        $memphisProcessor->expectOnce('processCacheVars', array('*', array('baz' => $mockPageElement), 'foo', 'bar', '*')); 
    293315        $memphisProcessor->setReturnValue('processCacheVars', true); 
     
    308330        $this->mockResponse->expectOnce('replaceData', array('name=idnameid')); 
    309331        $memphisProcessor->callDoProcess($this->mockPage, 'foo'); 
    310     } 
     332    }*/ 
    311333 
    312334    /** 
    313335     * test the processing algorithm using a cache 
    314336     */ 
    315     public function testDoProcessWithCacheButUncachableElement() 
     337    /*public function testDoProcessWithCacheButUncachableElement() 
    316338    { 
    317339        $memphisProcessor = new TestPartialMockstubMemphisProcessor($this->mockRequest, $this->mockSession, $this->mockResponse, $this->mockPageFactory); 
     
    339361        $this->mockResponse->expectOnce('replaceData', array('name=idnameid')); 
    340362        $memphisProcessor->callDoProcess($this->mockPage, 'foo'); 
    341     } 
     363    }*/ 
    342364 
    343365    /** 
    344366     * test the processing algorithm using a cache 
    345367     */ 
    346     public function testDoProcessWithCacheAndCached() 
     368    /*public function testDoProcessWithCacheAndCached() 
    347369    { 
    348370        $memphisProcessor = new TestPartialMockstubMemphisProcessor($this->mockRequest, $this->mockSession, $this->mockResponse, $this->mockPageFactory); 
     
    367389        $this->mockResponse->expectNever('replaceData'); 
    368390        $memphisProcessor->callDoProcess($this->mockPage, 'foo'); 
    369     } 
     391    }*/ 
    370392 
    371393    /** 
    372394     * test that collecting the cache variables works as expected 
    373395     */ 
    374     public function testProcessCacheVars() 
     396    /*public function testProcessCacheVars() 
    375397    { 
    376398        $prefixRequest = new stubRequestPrefixDecorator($this->mockRequest, ''); 
     
    435457        $this->memphisProcessor->setWebsiteCache($mockCache); 
    436458        $this->assertTrue($this->memphisProcessor->callProcessCacheVars($prefixRequest, array('mock1' => $mockPageElement1, 'mock2' => $mockPageElement2), 'foo', 'bar', array())); 
    437     } 
     459    }*/ 
    438460 
    439461    /** 
    440462     * test that collecting the cache variables works as expected 
    441463     */ 
    442     public function testProcessCacheVarsWithUncachableElement() 
     464    /*public function testProcessCacheVarsWithUncachableElement() 
    443465    { 
    444466        $prefixRequest = new stubRequestPrefixDecorator($this->mockRequest, ''); 
     
    485507        $this->memphisProcessor->setWebsiteCache($mockCache); 
    486508        $this->assertFalse($this->memphisProcessor->callProcessCacheVars($prefixRequest, array('mock1' => $mockPageElement1, 'mock2' => $mockPageElement2), 'foo', 'bar', array())); 
    487     } 
     509    }*/ 
    488510 
    489511    /** 
    490512     * test that collecting the cache variables works as expected 
    491513     */ 
    492     public function testProcessCacheVarsWithUncachableDefaultElement() 
     514    /*public function testProcessCacheVarsWithUncachableDefaultElement() 
    493515    { 
    494516        $prefixRequest = new stubRequestPrefixDecorator($this->mockRequest, ''); 
     
    532554        $this->memphisProcessor->setWebsiteCache($mockCache); 
    533555        $this->assertFalse($this->memphisProcessor->callProcessCacheVars($prefixRequest, array('mock1' => $mockPageElement1, 'mock2' => $mockPageElement2), 'foo', 'bar', array())); 
    534     } 
     556    }*/ 
    535557 
    536558    /** 
    537559     * test that processing of page elements works as expected 
    538560     */ 
    539     public function testProcessPageElements() 
     561    /*public function testProcessPageElements() 
    540562    { 
    541563        $prefixRequest = new stubRequestPrefixDecorator($this->mockRequest, ''); 
     
    578600        $this->mockResponse->expectOnce('write', array('defaultMock2Mock2defaultMock2Mock2')); 
    579601        $this->memphisProcessor->callProcessPageElements($prefixRequest, array('mock1' => $mockPageElement1, 'mock2' => $mockPageElement2), array()); 
    580     } 
     602    }*/ 
    581603 
    582604    /** 
    583605     * test that processing of page elements works as expected 
    584606     */ 
    585     public function testProcessPageElementsWithRequestCancelledByPageElement() 
     607    /*public function testProcessPageElementsWithRequestCancelledByPageElement() 
    586608    { 
    587609        $prefixRequest = new stubRequestPrefixDecorator($this->mockRequest, ''); 
     
    618640        $this->mockResponse->expectNever('write'); 
    619641        $this->memphisProcessor->callProcessPageElements($prefixRequest, array('mock1' => $mockPageElement1, 'mock2' => $mockPageElement2), array()); 
    620     } 
     642    }*/ 
    621643 
    622644    /** 
    623645     * test that processing of page elements works as expected 
    624646     */ 
    625     public function testProcessPageElementsWithRequestCancelledByDefaultPageElement() 
     647    /*public function testProcessPageElementsWithRequestCancelledByDefaultPageElement() 
    626648    { 
    627649        $prefixRequest = new stubRequestPrefixDecorator($this->mockRequest, ''); 
     
    653675        $this->mockResponse->expectNever('write'); 
    654676        $this->memphisProcessor->callProcessPageElements($prefixRequest, array('mock1' => $mockPageElement1, 'mock2' => $mockPageElement2), array()); 
    655     } 
     677    }*/ 
    656678 
    657679    /** 
    658680     * test that request is responsible for choosing the frame 
    659681     */ 
    660     public function testGetFrameIdFromRequest() 
     682    /*public function testGetFrameIdFromRequest() 
    661683    { 
    662684        $this->mockMemphisConfig->setReturnValue('getFrames', array('default' => 'frame/default.tmpl')); 
     
    670692        $this->assertEqual($this->memphisProcessor->callGetFrameId($page), 'default'); 
    671693        $this->assertEqual($this->memphisProcessor->callGetFrameId($page), 'default'); 
    672     } 
     694    }*/ 
    673695 
    674696    /** 
    675697     * test that session is responsible for choosing the frame 
    676698     */ 
    677     public function testGetFrameIdFromSession() 
     699    /*public function testGetFrameIdFromSession() 
    678700    { 
    679701        $page = new stubPage(); 
     
    687709        $this->assertEqual($this->memphisProcessor->callGetFrameId($page), 'default'); 
    688710        $this->assertEqual($this->memphisProcessor->callGetFrameId($page), 'default'); 
    689     } 
     711    }*/ 
    690712 
    691713    /** 
    692714     * test that page is responsible for choosing the frame 
    693715     */ 
    694     public function testGetFrameIdFromPage() 
     716    /*public function testGetFrameIdFromPage() 
    695717    { 
    696718        $page = new stubPage(); 
     
    704726        $page->setProperty('frame', 'another'); 
    705727        $this->assertEqual($this->memphisProcessor->callGetFrameId($page), 'another'); 
    706     } 
     728    }*/ 
    707729 
    708730    /** 
    709731     * test that page is responsible for choosing the frame 
    710732     */ 
    711     public function testGetFrameIdFromPageWithFixedFrame() 
     733    /*public function testGetFrameIdFromPageWithFixedFrame() 
    712734    { 
    713735        $page = new stubPage(); 
     
    717739        $this->mockSession->expectNever('hasValue'); 
    718740        $this->assertEqual($this->memphisProcessor->callGetFrameId($page), '404'); 
    719     } 
     741    }*/ 
    720742 
    721743    /** 
    722744     * test that template vars are set correct 
    723745     */ 
    724     public function testSetTemplateVars1() 
     746    /*public function testSetTemplateVars1() 
    725747    { 
    726748        $this->mockMemphisConfig->setReturnValue('getMetaTags', array('description' => 'This is a description.', 
     
    744766        $page->setProperty('title', 'bar'); 
    745767        $this->memphisProcessor->callSetTemplateVars($page, 'baz', 'foo'); 
    746     } 
     768    }*/ 
    747769 
    748770    /** 
    749771     * test that template vars are set correct 
    750772     */ 
    751     public function testSetTemplateVars2() 
     773    /*public function testSetTemplateVars2() 
    752774    { 
    753775        $mockCache = new MockstubWebsiteCache(); 
     
    770792        $page->setProperty('title', 'bar'); 
    771793        $this->memphisProcessor->callSetTemplateVars($page, 'baz', 'foo'); 
    772     } 
     794    }*/ 
    773795} 
    774796?>