ILIAS  trunk Revision v11.0_alpha-1862-g4e205cb56d4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
DecoratedRendererTest Class Reference
+ Inheritance diagram for DecoratedRendererTest:
+ Collaboration diagram for DecoratedRendererTest:

Public Member Functions

 testRender ()
 
 testRenderAsync ()
 
 testRenderWithManipulation ()
 

Detailed Description

Definition at line 25 of file DecoratedRendererTest.php.

Member Function Documentation

◆ testRender()

DecoratedRendererTest::testRender ( )

Definition at line 27 of file DecoratedRendererTest.php.

References $renderer.

28  {
29  $c1 = new TestComponent("foo");
30  $renderer = $this->getDecoratedRenderer($this->getDefaultRenderer());
31  $html = $renderer->render($c1);
32  $this->assertEquals("foo", $html);
33  }
$renderer

◆ testRenderAsync()

DecoratedRendererTest::testRenderAsync ( )

Definition at line 35 of file DecoratedRendererTest.php.

References $renderer.

36  {
37  $c1 = new TestComponent("foo");
38  $renderer = $this->getDecoratedRenderer($this->getDefaultRenderer());
39  $html = $renderer->renderAsync($c1);
40  $this->assertEquals("foo", $html);
41  }
$renderer

◆ testRenderWithManipulation()

DecoratedRendererTest::testRenderWithManipulation ( )

Definition at line 43 of file DecoratedRendererTest.php.

References $renderer.

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  }
$renderer

The documentation for this class was generated from the following file: