function setUp() { parent::setUp(); $tag_info = new lmbMacroTagInfo('lmbMacroRuntimeWidgetTag', 'whatever'); $source_location = new lmbMacroSourceLocation('my_file', 10); $this->tag = new lmbMacroRuntimeWidgetTag($source_location, 'my_tag', $tag_info); }
function setUp() { parent::setUp(); $this->old_get = $_GET; $this->old_server = $_SERVER; $_SERVER['REQUEST_URI'] = 'test.com'; $_GET = array(); }
function setUp() { parent::setUp(); lmbFs::mkdir($this->tpl_dir . '/_mail'); $toolkit = lmbToolkit::instance(); $toolkit->setConf('macro', $this->_createMacroConfig()); $mail_config = $toolkit->getConf('mail'); $mail_config->set('mode', 'testing'); $toolkit->setConf('mail', $mail_config); }
function setUp() { parent::setUp(); $this->form = new lmbMacroFormWidget('test_form'); $this->datasource = new lmbSet(); $this->form->setDatasource($this->datasource); $this->checkbox = new lmbMacroCheckableInputWidget('my_checkbox'); $this->form->addChild($this->checkbox); $this->checkbox->setForm($this->form); }
function setUp() { parent::setUp(); $acl = new lmbAcl(); $acl->addRole('boy'); $acl->addRole('man'); $acl->addResource('girl'); $acl->allow('boy', 'girl', 'sex'); $acl->allow('man', 'girl', 'marry'); $acl->addResource('vodka'); $acl->allow('man', 'vodka'); lmbToolkit::instance()->setAcl($acl); $this->tags_dir = realpath(dirname(__FILE__) . '/../../../src/macro'); }
function setUp() { parent::setUp(); lmbFs::mkdir(LIMB_VAR_DIR . '/tpl/tags/'); lmbFs::mkdir(LIMB_VAR_DIR . '/tpl/tags/subfolder/'); }
function setUp() { parent::setUp(); $this->prev_driver = lmb_use_charset_driver(new lmbUTF8BaseDriver()); }
function setUp() { parent::setUp(); $this->class = 'Foo' . mt_rand(); $this->writer = new lmbMacroCodeWriter($this->class); }
function setUp() { parent::setUp(); $this->toolkit = lmbToolkit::instance(); }
function setUp() { parent::setUp(); $this->prev_ref = isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : ""; }