| @@ 100-114 (lines=15) @@ | ||
| 97 | /** |
|
| 98 | * Test render of the template with parameter |
|
| 99 | */ |
|
| 100 | public function testTemplateRenderWithParameter() |
|
| 101 | { |
|
| 102 | $this->frontRender = new FrontRender($this->engine, $this->eventDispatcher, self::TEMPLATE); |
|
| 103 | ||
| 104 | $this->frontRender->setParameters( |
|
| 105 | [ |
|
| 106 | 'applicationName' => 'Test Render', |
|
| 107 | ] |
|
| 108 | ); |
|
| 109 | ||
| 110 | $this->assertContains( |
|
| 111 | 'Welcome on Test Render', |
|
| 112 | $this->frontRender->render() |
|
| 113 | ); |
|
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * Test render of the template without parameter |
|
| @@ 119-127 (lines=9) @@ | ||
| 116 | /** |
|
| 117 | * Test render of the template without parameter |
|
| 118 | */ |
|
| 119 | public function testTemplateRenderWithoutParameter() |
|
| 120 | { |
|
| 121 | $this->frontRender = new FrontRender($this->engine, $this->eventDispatcher, self::TEMPLATE); |
|
| 122 | ||
| 123 | $this->assertNotContains( |
|
| 124 | 'Test Render', |
|
| 125 | $this->frontRender->render() |
|
| 126 | ); |
|
| 127 | } |
|
| 128 | ||
| 129 | /** |
|
| 130 | * Test on the update of lexer |
|