/** * */ public function setUp() { $this->parser = new Parser('Smarty', XGETTEXT_BIN); $this->adapter = $this->parser->getAdapter(); }
/** * */ public function setUp() { $this->parser = new Parser('JavaScript', XGETTEXT_BIN); $this->adapter = $this->parser->getAdapter(); }
/** * */ public function testUnreadable() { $tmpFilePath = TEST_DATA_PATH . '/general_tmp.tpl'; file_put_contents($tmpFilePath, "{t}cat{/t}"); $this->assertFileExists($tmpFilePath); @chmod($tmpFilePath, 00); $parser = new Parser('Smarty', XGETTEXT_BIN); $parser->run($this->getParserParams('Smarty', $tmpFilePath)); $this->assertFileExists($tmpFilePath); @chmod($tmpFilePath, 0664); @unlink($tmpFilePath); $this->assertFileNotExists($tmpFilePath); }