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