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; }
public function tearDown() { if (file_exists('trigger.10')) { unlink('trigger.10'); } if (file_exists('trigger.11')) { unlink('trigger.11'); } parent::tearDown(); }
function setUp() { parent::setUp(); $this->PhptalCacheTest_random = time() . mt_rand(); }
/** * 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); }
function tearDown() { $this->clearCache(); parent::tearDown(); }