| @@ 110-124 (lines=15) @@ | ||
| 107 | /** |
|
| 108 | * Test render of the template with parameter |
|
| 109 | */ |
|
| 110 | public function testTemplateRenderWithParameter() |
|
| 111 | { |
|
| 112 | $this->frontRender = new FrontRender($this->engine, $this->eventDispatcher, self::TEMPLATE); |
|
| 113 | ||
| 114 | $this->frontRender->setParameters( |
|
| 115 | [ |
|
| 116 | 'applicationName' => 'Test Render', |
|
| 117 | ] |
|
| 118 | ); |
|
| 119 | ||
| 120 | $this->assertContains( |
|
| 121 | 'Welcome on Test Render', |
|
| 122 | $this->frontRender->render() |
|
| 123 | ); |
|
| 124 | } |
|
| 125 | ||
| 126 | /** |
|
| 127 | * Test render of the template without parameter |
|
| @@ 129-137 (lines=9) @@ | ||
| 126 | /** |
|
| 127 | * Test render of the template without parameter |
|
| 128 | */ |
|
| 129 | public function testTemplateRenderWithoutParameter() |
|
| 130 | { |
|
| 131 | $this->frontRender = new FrontRender($this->engine, $this->eventDispatcher, self::TEMPLATE); |
|
| 132 | ||
| 133 | $this->assertNotContains( |
|
| 134 | 'Test Render', |
|
| 135 | $this->frontRender->render() |
|
| 136 | ); |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * Test on the update of lexer |
|