function setUp() { parent::setUp(); $this->form = new WactFormComponent('test_form'); $this->checkbox = new WactCheckableInputComponent('my_checkbox'); $this->form->addChild($this->checkbox); }
function setUp() { parent::setUp(); $this->form = new WactFormComponent('test_form'); $this->text_area = new WactTextAreaComponent('my_text_area'); $this->form->addChild($this->text_area); }
function setUp() { parent::setUp(); $this->form = new WactFormComponent('test_form'); $this->element = new WactFormElementComponent('my_element'); $this->form->addChild($this->element); }
function tearDown() { if ($this->old_server) { $_SERVER = $this->old_server; } parent::tearDown(); }
function tearDown() { if ($this->old_request_uri) { $_SERVER["REQUEST_URI"] = $this->old_request_uri; } parent::tearDown(); }
function setUp() { parent::setUp(); $template = 'Before-<core:block id="block">Block</core:block>-After'; $this->registerTestingTemplate('/tags/core/block/block.html', $template); $template = 'Before-<core:block id="block" hide="true">Block</core:block>-After'; $this->registerTestingTemplate('/tags/core/block/hiddenblock.html', $template); }
function setUp() { parent::setUp(); $template = 'Terminal'; $this->registerTestingTemplate('/tags/core/include/terminal.html', $template, 'terminal.html'); $template = 'Nested-<core:include file="terminal.html"/>-Nested'; $this->registerTestingTemplate('/tags/core/include/nested.html', $template, 'nested.html'); }
function setUp() { parent::setUp(); $Wrapper = '<B><core:placeholder id="boldarea"/></B>'; $this->registerTestingTemplate('/tags/core/wrap/bold_wrapper.html', $Wrapper, 'bold_wrapper.html'); $Wrapper = '<div wact:id="content">some content</div>'; $this->registerTestingTemplate('/tags/core/wrap/wrapper_with_content.html', $Wrapper, 'wrapper_with_content.html'); $Wrapper = '<I><core:placeholder id="italicarea"/></I>'; $this->registerTestingTemplate('/tags/core/wrap/italic_wrapper.html', $Wrapper, 'italic_wrapper.html'); $Wrapper = '<B><core:placeholder id="boldarea"/></B><I><core:placeholder id="italicarea"/></I>'; $this->registerTestingTemplate('/tags/core/wrap/two_placeholders_wrapper.html', $Wrapper, 'two_placeholders_wrapper.html'); }
function setUp() { parent::setUp(); $this->founding_fathers = array(array('First' => 'George', 'Last' => 'Washington'), array('First' => 'Alexander', 'Last' => 'Hamilton'), array('First' => 'Benjamin', 'Last' => 'Franklin')); $this->numbers = array(array('BaseNumber' => 2), array('BaseNumber' => 4), array('BaseNumber' => 6)); }
function setUp() { parent::setUp(); $this->component = new WactRuntimeComponent('TestId'); }
function setUp() { parent::setUp(); $this->locator = new WactTestTemplateLocator($this->default_config); }
function setUp() { parent::setUp(); $template = '<core:default for="{$Var}">default</core:default>' . '<core:optional for="{$Var}">optional</core:optional>'; $this->registerTestingTemplate('/tags/core/default/default.html', $template); }
function setUp() { parent::setUp(); $dataset = array(array('title' => 'joe', 'description' => 'fisher'), array('title' => 'ivan', 'description' => 'gamer')); TestingFetchTagsDatasetFetcher::setStubDataset($dataset); }
function setUp() { parent::setUp(); $template = '{$Var|default:"default"}'; $this->registerTestingTemplate('/tags/core/default-filter/default.html', $template); }
function tearDown() { $_GET = $this->old_get; $_SERVER = $this->old_server; parent::tearDown(); }