ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
DecoratedRendererTest.php
Go to the documentation of this file.
1 <?php
2 
19 require_once(__DIR__ . "/TestComponent.php");
20 require_once(__DIR__ . "/../Base.php");
21 
24 
26 {
27  public function testRender()
28  {
29  $c1 = new TestComponent("foo");
30  $renderer = $this->getDecoratedRenderer($this->getDefaultRenderer());
31  $html = $renderer->render($c1);
32  $this->assertEquals("foo", $html);
33  }
34 
35  public function testRenderAsync()
36  {
37  $c1 = new TestComponent("foo");
38  $renderer = $this->getDecoratedRenderer($this->getDefaultRenderer());
39  $html = $renderer->renderAsync($c1);
40  $this->assertEquals("foo", $html);
41  }
42 
43  public function testRenderWithManipulation()
44  {
45  $c1 = new TestComponent("foo");
46  $renderer = $this->getDecoratedRenderer($this->getDefaultRenderer());
47  $renderer->manipulate();
48  $html = $renderer->render($c1);
49  $this->assertEquals("This content was manipulated", $html);
50  }
51 }
$renderer
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...