Example #1
0
 function setUp()
 {
     parent::setUp();
     $state = new PHPTAL_Php_State($this->newPHPTAL());
     $this->_gen = new PHPTAL_Php_CodeWriter($state);
     $this->_tag = new DummyPhpNode();
     $this->_tag->codewriter = $this->_gen;
 }
Example #2
0
 public function tearDown()
 {
     if (file_exists('trigger.10')) {
         unlink('trigger.10');
     }
     if (file_exists('trigger.11')) {
         unlink('trigger.11');
     }
     parent::tearDown();
 }
Example #3
0
 function setUp()
 {
     parent::setUp();
     $this->PhptalCacheTest_random = time() . mt_rand();
 }
Example #4
0
 /**
  * Define constants after requires/includes
  * @param Text_Template $template
  * @return void
  */
 public function prepareTemplate(Text_Template $template)
 {
     $template->setVar(array('constants' => '', 'zz_constants' => PHPUnit_Util_GlobalState::getConstantsAsString()));
     parent::prepareTemplate($template);
 }
Example #5
0
 function tearDown()
 {
     $this->clearCache();
     parent::tearDown();
 }