Пример #1
0
 function setUp()
 {
     parent::setUp();
     $this->form = new WactFormComponent('test_form');
     $this->checkbox = new WactCheckableInputComponent('my_checkbox');
     $this->form->addChild($this->checkbox);
 }
Пример #2
0
 function setUp()
 {
     parent::setUp();
     $this->form = new WactFormComponent('test_form');
     $this->text_area = new WactTextAreaComponent('my_text_area');
     $this->form->addChild($this->text_area);
 }
Пример #3
0
 function setUp()
 {
     parent::setUp();
     $this->form = new WactFormComponent('test_form');
     $this->element = new WactFormElementComponent('my_element');
     $this->form->addChild($this->element);
 }
Пример #4
0
 function tearDown()
 {
     if ($this->old_server) {
         $_SERVER = $this->old_server;
     }
     parent::tearDown();
 }
Пример #5
0
 function tearDown()
 {
     if ($this->old_request_uri) {
         $_SERVER["REQUEST_URI"] = $this->old_request_uri;
     }
     parent::tearDown();
 }
Пример #6
0
 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);
 }
Пример #7
0
 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');
 }
Пример #8
0
 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');
 }
Пример #9
0
 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));
 }
Пример #10
0
 function setUp()
 {
     parent::setUp();
     $this->component = new WactRuntimeComponent('TestId');
 }
Пример #11
0
 function setUp()
 {
     parent::setUp();
     $this->locator = new WactTestTemplateLocator($this->default_config);
 }
Пример #12
0
 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);
 }
Пример #13
0
 function setUp()
 {
     parent::setUp();
     $dataset = array(array('title' => 'joe', 'description' => 'fisher'), array('title' => 'ivan', 'description' => 'gamer'));
     TestingFetchTagsDatasetFetcher::setStubDataset($dataset);
 }
Пример #14
0
 function setUp()
 {
     parent::setUp();
     $template = '{$Var|default:"default"}';
     $this->registerTestingTemplate('/tags/core/default-filter/default.html', $template);
 }
Пример #15
0
 function tearDown()
 {
     $_GET = $this->old_get;
     $_SERVER = $this->old_server;
     parent::tearDown();
 }