@@ -117,12 +117,12 @@ discard block |
||
117 | 117 | $expectedFile = PHPCB_TEST_OUTPUT.DIRECTORY_SEPARATOR.basename(__FILE__).'.html'; |
118 | 118 | |
119 | 119 | $this->ioMock->expects($this->once()) |
120 | - ->method('loadFile') |
|
121 | - ->with($this->equalTo(__FILE__)) |
|
122 | - ->will($this->returnValue(file_get_contents(__FILE__))); |
|
120 | + ->method('loadFile') |
|
121 | + ->with($this->equalTo(__FILE__)) |
|
122 | + ->will($this->returnValue(file_get_contents(__FILE__))); |
|
123 | 123 | $this->ioMock->expects($this->once()) |
124 | - ->method('createFile') |
|
125 | - ->with($this->equalTo($expectedFile)); |
|
124 | + ->method('createFile') |
|
125 | + ->with($this->equalTo($expectedFile)); |
|
126 | 126 | |
127 | 127 | $this->viewReview->generate( |
128 | 128 | [], |
@@ -151,12 +151,12 @@ discard block |
||
151 | 151 | |
152 | 152 | $expectedFile = PHPCB_TEST_OUTPUT.DIRECTORY_SEPARATOR.basename(__FILE__).'.html'; |
153 | 153 | $this->ioMock->expects($this->once()) |
154 | - ->method('loadFile') |
|
155 | - ->with($this->equalTo(__FILE__)) |
|
156 | - ->will($this->returnValue(file_get_contents(__FILE__))); |
|
154 | + ->method('loadFile') |
|
155 | + ->with($this->equalTo(__FILE__)) |
|
156 | + ->will($this->returnValue(file_get_contents(__FILE__))); |
|
157 | 157 | $this->ioMock->expects($this->once()) |
158 | - ->method('createFile') |
|
159 | - ->with($this->equalTo($expectedFile)); |
|
158 | + ->method('createFile') |
|
159 | + ->with($this->equalTo($expectedFile)); |
|
160 | 160 | |
161 | 161 | $this->viewReview->generate( |
162 | 162 | $issueList, |
@@ -179,12 +179,12 @@ discard block |
||
179 | 179 | |
180 | 180 | $expectedFile = PHPCB_TEST_OUTPUT.DIRECTORY_SEPARATOR.basename(__FILE__).'.html'; |
181 | 181 | $this->ioMock->expects($this->once()) |
182 | - ->method('loadFile') |
|
183 | - ->with($this->equalTo(__FILE__)) |
|
184 | - ->will($this->returnValue(file_get_contents(__FILE__))); |
|
182 | + ->method('loadFile') |
|
183 | + ->with($this->equalTo(__FILE__)) |
|
184 | + ->will($this->returnValue(file_get_contents(__FILE__))); |
|
185 | 185 | $this->ioMock->expects($this->once()) |
186 | - ->method('createFile') |
|
187 | - ->with($this->equalTo($expectedFile)); |
|
186 | + ->method('createFile') |
|
187 | + ->with($this->equalTo($expectedFile)); |
|
188 | 188 | |
189 | 189 | $this->viewReview->generate( |
190 | 190 | $issueList, |
@@ -219,12 +219,12 @@ discard block |
||
219 | 219 | |
220 | 220 | $expectedFile = PHPCB_TEST_OUTPUT.'/file.html.html'; |
221 | 221 | $this->ioMock->expects($this->once()) |
222 | - ->method('loadFile') |
|
223 | - ->with($this->equalTo($fileName)) |
|
224 | - ->will($this->returnValue($html)); |
|
222 | + ->method('loadFile') |
|
223 | + ->with($this->equalTo($fileName)) |
|
224 | + ->will($this->returnValue($html)); |
|
225 | 225 | $this->ioMock->expects($this->once()) |
226 | - ->method('createFile') |
|
227 | - ->with($this->equalTo($expectedFile)); |
|
226 | + ->method('createFile') |
|
227 | + ->with($this->equalTo($expectedFile)); |
|
228 | 228 | |
229 | 229 | $issues = [ |
230 | 230 | new Issue($fileName, 5, 5, 'finder', 'description', 'severity'), |
@@ -243,8 +243,8 @@ discard block |
||
243 | 243 | $expectedFile = PHPCB_TEST_OUTPUT.DIRECTORY_SEPARATOR.basename(self::$xmlBasic).'.html'; |
244 | 244 | |
245 | 245 | $this->ioMock->expects($this->once()) |
246 | - ->method('createFile') |
|
247 | - ->with($this->equalTo($expectedFile)); |
|
246 | + ->method('createFile') |
|
247 | + ->with($this->equalTo($expectedFile)); |
|
248 | 248 | |
249 | 249 | $issueList = [ |
250 | 250 | new Issue(self::$xmlBasic, 5, 5, 'finder', 'description', 'severity'), |
@@ -265,12 +265,12 @@ discard block |
||
265 | 265 | public function testCopyResourceFolders(): void |
266 | 266 | { |
267 | 267 | $this->ioMock->expects($this->exactly(3)) |
268 | - ->method('copyDirectory') |
|
269 | - ->with( |
|
270 | - $this->matchesRegularExpression( |
|
271 | - '|^'.realpath(dirname(__FILE__).'/../../../templates/').'|' |
|
272 | - ) |
|
273 | - ); |
|
268 | + ->method('copyDirectory') |
|
269 | + ->with( |
|
270 | + $this->matchesRegularExpression( |
|
271 | + '|^'.realpath(dirname(__FILE__).'/../../../templates/').'|' |
|
272 | + ) |
|
273 | + ); |
|
274 | 274 | $this->viewReview->copyResourceFolders(); |
275 | 275 | } |
276 | 276 | |
@@ -288,12 +288,12 @@ discard block |
||
288 | 288 | ]; |
289 | 289 | |
290 | 290 | $this->ioMock->expects($this->once()) |
291 | - ->method('createFile') |
|
292 | - ->with( |
|
293 | - $this->logicalAnd( |
|
294 | - $this->stringEndsWith('index.html') |
|
295 | - ) |
|
296 | - ); |
|
291 | + ->method('createFile') |
|
292 | + ->with( |
|
293 | + $this->logicalAnd( |
|
294 | + $this->stringEndsWith('index.html') |
|
295 | + ) |
|
296 | + ); |
|
297 | 297 | $this->viewReview->generateIndex($files); |
298 | 298 | } |
299 | 299 | } |