@@ -176,35 +176,35 @@ |
||
| 176 | 176 | { |
| 177 | 177 | $presenter = new TestingPresenter(new View(), 'Result'); |
| 178 | 178 | return [ |
| 179 | - [ // #0 testing presenter |
|
| 180 | - function (): TestCommonApplication { |
|
| 179 | + [// #0 testing presenter |
|
| 180 | + function(): TestCommonApplication { |
|
| 181 | 181 | return new TestCommonApplication(); |
| 182 | 182 | }, |
| 183 | 183 | $presenter, |
| 184 | - function (array $params) { |
|
| 184 | + function(array $params) { |
|
| 185 | 185 | $this->assertTrue($params[0]->wasCalled); |
| 186 | 186 | } |
| 187 | 187 | ], |
| 188 | - [ // #1 testing action message setup |
|
| 189 | - function (): TestCommonApplication { |
|
| 188 | + [// #1 testing action message setup |
|
| 189 | + function(): TestCommonApplication { |
|
| 190 | 190 | $_GET['action-message'] = 'test-error'; |
| 191 | 191 | return new TestCommonApplication(); |
| 192 | 192 | }, |
| 193 | 193 | $presenter, |
| 194 | - function (array $params): void { |
|
| 194 | + function(array $params): void { |
|
| 195 | 195 | $this->assertEquals('error', $params[1]->getTemplate() |
| 196 | 196 | ->getPageVar('action-message')); |
| 197 | 197 | } |
| 198 | 198 | ], |
| 199 | - [ // #2 no file with the messages |
|
| 200 | - function (): TestCommonApplication { |
|
| 199 | + [// #2 no file with the messages |
|
| 200 | + function(): TestCommonApplication { |
|
| 201 | 201 | $_GET['action-message'] = 'test-error'; |
| 202 | 202 | $application = new TestCommonApplication(); |
| 203 | 203 | $application->hasMessages = false; |
| 204 | 204 | return $application; |
| 205 | 205 | }, |
| 206 | 206 | $presenter, |
| 207 | - function (array $params): void { |
|
| 207 | + function(array $params): void { |
|
| 208 | 208 | $this->assertEquals('', $params[1]->getTemplate() |
| 209 | 209 | ->getPageVar('action-message')); |
| 210 | 210 | } |