@@ -23,14 +23,14 @@ discard block |
||
23 | 23 | |
24 | 24 | public static function setUpBeforeClass() |
25 | 25 | { |
26 | - self::$TEST_TMP_PATH = TEST_FILES_PATH . 'tmp'; |
|
26 | + self::$TEST_TMP_PATH = TEST_FILES_PATH.'tmp'; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | protected function getXdebugDataForBankAccount() |
30 | 30 | { |
31 | 31 | return [ |
32 | 32 | [ |
33 | - TEST_FILES_PATH . 'BankAccount.php' => [ |
|
33 | + TEST_FILES_PATH.'BankAccount.php' => [ |
|
34 | 34 | 8 => 1, |
35 | 35 | 9 => -2, |
36 | 36 | 13 => -1, |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | ] |
48 | 48 | ], |
49 | 49 | [ |
50 | - TEST_FILES_PATH . 'BankAccount.php' => [ |
|
50 | + TEST_FILES_PATH.'BankAccount.php' => [ |
|
51 | 51 | 8 => 1, |
52 | 52 | 13 => 1, |
53 | 53 | 16 => 1, |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | ] |
56 | 56 | ], |
57 | 57 | [ |
58 | - TEST_FILES_PATH . 'BankAccount.php' => [ |
|
58 | + TEST_FILES_PATH.'BankAccount.php' => [ |
|
59 | 59 | 8 => 1, |
60 | 60 | 13 => 1, |
61 | 61 | 16 => 1, |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | ] |
64 | 64 | ], |
65 | 65 | [ |
66 | - TEST_FILES_PATH . 'BankAccount.php' => [ |
|
66 | + TEST_FILES_PATH.'BankAccount.php' => [ |
|
67 | 67 | 8 => 1, |
68 | 68 | 13 => 1, |
69 | 69 | 14 => 1, |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | protected function getCoverageForBankAccount() |
82 | 82 | { |
83 | 83 | $data = $this->getXdebugDataForBankAccount(); |
84 | - require_once TEST_FILES_PATH . '/BankAccountTest.php'; |
|
84 | + require_once TEST_FILES_PATH.'/BankAccountTest.php'; |
|
85 | 85 | |
86 | 86 | $stub = $this->createMock(Xdebug::class); |
87 | 87 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | )); |
96 | 96 | |
97 | 97 | $filter = new Filter; |
98 | - $filter->addFileToWhitelist(TEST_FILES_PATH . 'BankAccount.php'); |
|
98 | + $filter->addFileToWhitelist(TEST_FILES_PATH.'BankAccount.php'); |
|
99 | 99 | |
100 | 100 | $coverage = new CodeCoverage($stub, $filter); |
101 | 101 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | $coverage->stop( |
108 | 108 | true, |
109 | - [TEST_FILES_PATH . 'BankAccount.php' => range(6, 9)] |
|
109 | + [TEST_FILES_PATH.'BankAccount.php' => range(6, 9)] |
|
110 | 110 | ); |
111 | 111 | |
112 | 112 | $coverage->start( |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $coverage->stop( |
117 | 117 | true, |
118 | - [TEST_FILES_PATH . 'BankAccount.php' => range(27, 32)] |
|
118 | + [TEST_FILES_PATH.'BankAccount.php' => range(27, 32)] |
|
119 | 119 | ); |
120 | 120 | |
121 | 121 | $coverage->start( |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | $coverage->stop( |
126 | 126 | true, |
127 | - [TEST_FILES_PATH . 'BankAccount.php' => range(20, 25)] |
|
127 | + [TEST_FILES_PATH.'BankAccount.php' => range(20, 25)] |
|
128 | 128 | ); |
129 | 129 | |
130 | 130 | $coverage->start( |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $coverage->stop( |
135 | 135 | true, |
136 | 136 | [ |
137 | - TEST_FILES_PATH . 'BankAccount.php' => array_merge( |
|
137 | + TEST_FILES_PATH.'BankAccount.php' => array_merge( |
|
138 | 138 | range(6, 9), |
139 | 139 | range(20, 25), |
140 | 140 | range(27, 32) |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | )); |
160 | 160 | |
161 | 161 | $filter = new Filter; |
162 | - $filter->addFileToWhitelist(TEST_FILES_PATH . 'BankAccount.php'); |
|
162 | + $filter->addFileToWhitelist(TEST_FILES_PATH.'BankAccount.php'); |
|
163 | 163 | |
164 | 164 | $coverage = new CodeCoverage($stub, $filter); |
165 | 165 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | |
171 | 171 | $coverage->stop( |
172 | 172 | true, |
173 | - [TEST_FILES_PATH . 'BankAccount.php' => range(6, 9)] |
|
173 | + [TEST_FILES_PATH.'BankAccount.php' => range(6, 9)] |
|
174 | 174 | ); |
175 | 175 | |
176 | 176 | $coverage->start( |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | |
180 | 180 | $coverage->stop( |
181 | 181 | true, |
182 | - [TEST_FILES_PATH . 'BankAccount.php' => range(27, 32)] |
|
182 | + [TEST_FILES_PATH.'BankAccount.php' => range(27, 32)] |
|
183 | 183 | ); |
184 | 184 | |
185 | 185 | return $coverage; |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | )); |
200 | 200 | |
201 | 201 | $filter = new Filter; |
202 | - $filter->addFileToWhitelist(TEST_FILES_PATH . 'BankAccount.php'); |
|
202 | + $filter->addFileToWhitelist(TEST_FILES_PATH.'BankAccount.php'); |
|
203 | 203 | |
204 | 204 | $coverage = new CodeCoverage($stub, $filter); |
205 | 205 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | |
210 | 210 | $coverage->stop( |
211 | 211 | true, |
212 | - [TEST_FILES_PATH . 'BankAccount.php' => range(20, 25)] |
|
212 | + [TEST_FILES_PATH.'BankAccount.php' => range(20, 25)] |
|
213 | 213 | ); |
214 | 214 | |
215 | 215 | $coverage->start( |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | $coverage->stop( |
220 | 220 | true, |
221 | 221 | [ |
222 | - TEST_FILES_PATH . 'BankAccount.php' => array_merge( |
|
222 | + TEST_FILES_PATH.'BankAccount.php' => array_merge( |
|
223 | 223 | range(6, 9), |
224 | 224 | range(20, 25), |
225 | 225 | range(27, 32) |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | protected function getExpectedDataArrayForBankAccount() |
234 | 234 | { |
235 | 235 | return [ |
236 | - TEST_FILES_PATH . 'BankAccount.php' => [ |
|
236 | + TEST_FILES_PATH.'BankAccount.php' => [ |
|
237 | 237 | 8 => [ |
238 | 238 | 0 => 'BankAccountTest::testBalanceIsInitiallyZero', |
239 | 239 | 1 => 'BankAccountTest::testDepositWithdrawMoney' |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | protected function getCoverageForFileWithIgnoredLines() |
268 | 268 | { |
269 | 269 | $filter = new Filter; |
270 | - $filter->addFileToWhitelist(TEST_FILES_PATH . 'source_with_ignore.php'); |
|
270 | + $filter->addFileToWhitelist(TEST_FILES_PATH.'source_with_ignore.php'); |
|
271 | 271 | |
272 | 272 | $coverage = new CodeCoverage( |
273 | 273 | $this->setUpXdebugStubForFileWithIgnoredLines(), |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | ->method('stop') |
289 | 289 | ->will($this->returnValue( |
290 | 290 | [ |
291 | - TEST_FILES_PATH . 'source_with_ignore.php' => [ |
|
291 | + TEST_FILES_PATH.'source_with_ignore.php' => [ |
|
292 | 292 | 2 => 1, |
293 | 293 | 4 => -1, |
294 | 294 | 6 => -1, |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | protected function getCoverageForClassWithAnonymousFunction() |
304 | 304 | { |
305 | 305 | $filter = new Filter; |
306 | - $filter->addFileToWhitelist(TEST_FILES_PATH . 'source_with_class_and_anonymous_function.php'); |
|
306 | + $filter->addFileToWhitelist(TEST_FILES_PATH.'source_with_class_and_anonymous_function.php'); |
|
307 | 307 | |
308 | 308 | $coverage = new CodeCoverage( |
309 | 309 | $this->setUpXdebugStubForClassWithAnonymousFunction(), |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | ->method('stop') |
325 | 325 | ->will($this->returnValue( |
326 | 326 | [ |
327 | - TEST_FILES_PATH . 'source_with_class_and_anonymous_function.php' => [ |
|
327 | + TEST_FILES_PATH.'source_with_class_and_anonymous_function.php' => [ |
|
328 | 328 | 7 => 1, |
329 | 329 | 9 => 1, |
330 | 330 | 10 => -1, |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -require __DIR__ . '/../vendor/autoload.php'; |
|
3 | -require __DIR__ . '/TestCase.php'; |
|
2 | +require __DIR__.'/../vendor/autoload.php'; |
|
3 | +require __DIR__.'/TestCase.php'; |
|
4 | 4 | |
5 | -define('TEST_FILES_PATH', __DIR__ . '/_files/'); |
|
5 | +define('TEST_FILES_PATH', __DIR__.'/_files/'); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $text = new Text(50, 90, false, false); |
23 | 23 | |
24 | 24 | $this->assertStringMatchesFormatFile( |
25 | - TEST_FILES_PATH . 'BankAccount-text.txt', |
|
25 | + TEST_FILES_PATH.'BankAccount-text.txt', |
|
26 | 26 | str_replace(PHP_EOL, "\n", $text->process($this->getCoverageForBankAccount())) |
27 | 27 | ); |
28 | 28 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $text = new Text(50, 90, false, false); |
33 | 33 | |
34 | 34 | $this->assertStringMatchesFormatFile( |
35 | - TEST_FILES_PATH . 'ignored-lines-text.txt', |
|
35 | + TEST_FILES_PATH.'ignored-lines-text.txt', |
|
36 | 36 | str_replace(PHP_EOL, "\n", $text->process($this->getCoverageForFileWithIgnoredLines())) |
37 | 37 | ); |
38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $text = new Text(50, 90, false, false); |
43 | 43 | |
44 | 44 | $this->assertStringMatchesFormatFile( |
45 | - TEST_FILES_PATH . 'class-with-anonymous-function-text.txt', |
|
45 | + TEST_FILES_PATH.'class-with-anonymous-function-text.txt', |
|
46 | 46 | str_replace(PHP_EOL, "\n", $text->process($this->getCoverageForClassWithAnonymousFunction())) |
47 | 47 | ); |
48 | 48 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $clover = new Clover; |
23 | 23 | |
24 | 24 | $this->assertStringMatchesFormatFile( |
25 | - TEST_FILES_PATH . 'BankAccount-clover.xml', |
|
25 | + TEST_FILES_PATH.'BankAccount-clover.xml', |
|
26 | 26 | $clover->process($this->getCoverageForBankAccount(), null, 'BankAccount') |
27 | 27 | ); |
28 | 28 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $clover = new Clover; |
33 | 33 | |
34 | 34 | $this->assertStringMatchesFormatFile( |
35 | - TEST_FILES_PATH . 'ignored-lines-clover.xml', |
|
35 | + TEST_FILES_PATH.'ignored-lines-clover.xml', |
|
36 | 36 | $clover->process($this->getCoverageForFileWithIgnoredLines()) |
37 | 37 | ); |
38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $clover = new Clover; |
43 | 43 | |
44 | 44 | $this->assertStringMatchesFormatFile( |
45 | - TEST_FILES_PATH . 'class-with-anonymous-function-clover.xml', |
|
45 | + TEST_FILES_PATH.'class-with-anonymous-function-clover.xml', |
|
46 | 46 | $clover->process($this->getCoverageForClassWithAnonymousFunction()) |
47 | 47 | ); |
48 | 48 | } |
@@ -29,47 +29,47 @@ |
||
29 | 29 | $this->filter = unserialize('O:37:"SebastianBergmann\CodeCoverage\Filter":0:{}'); |
30 | 30 | |
31 | 31 | $this->files = [ |
32 | - TEST_FILES_PATH . 'BankAccount.php', |
|
33 | - TEST_FILES_PATH . 'BankAccountTest.php', |
|
34 | - TEST_FILES_PATH . 'CoverageClassExtendedTest.php', |
|
35 | - TEST_FILES_PATH . 'CoverageClassTest.php', |
|
36 | - TEST_FILES_PATH . 'CoverageFunctionParenthesesTest.php', |
|
37 | - TEST_FILES_PATH . 'CoverageFunctionParenthesesWhitespaceTest.php', |
|
38 | - TEST_FILES_PATH . 'CoverageFunctionTest.php', |
|
39 | - TEST_FILES_PATH . 'CoverageMethodOneLineAnnotationTest.php', |
|
40 | - TEST_FILES_PATH . 'CoverageMethodParenthesesTest.php', |
|
41 | - TEST_FILES_PATH . 'CoverageMethodParenthesesWhitespaceTest.php', |
|
42 | - TEST_FILES_PATH . 'CoverageMethodTest.php', |
|
43 | - TEST_FILES_PATH . 'CoverageNoneTest.php', |
|
44 | - TEST_FILES_PATH . 'CoverageNotPrivateTest.php', |
|
45 | - TEST_FILES_PATH . 'CoverageNotProtectedTest.php', |
|
46 | - TEST_FILES_PATH . 'CoverageNotPublicTest.php', |
|
47 | - TEST_FILES_PATH . 'CoverageNothingTest.php', |
|
48 | - TEST_FILES_PATH . 'CoveragePrivateTest.php', |
|
49 | - TEST_FILES_PATH . 'CoverageProtectedTest.php', |
|
50 | - TEST_FILES_PATH . 'CoveragePublicTest.php', |
|
51 | - TEST_FILES_PATH . 'CoverageTwoDefaultClassAnnotations.php', |
|
52 | - TEST_FILES_PATH . 'CoveredClass.php', |
|
53 | - TEST_FILES_PATH . 'CoveredFunction.php', |
|
54 | - TEST_FILES_PATH . 'NamespaceCoverageClassExtendedTest.php', |
|
55 | - TEST_FILES_PATH . 'NamespaceCoverageClassTest.php', |
|
56 | - TEST_FILES_PATH . 'NamespaceCoverageCoversClassPublicTest.php', |
|
57 | - TEST_FILES_PATH . 'NamespaceCoverageCoversClassTest.php', |
|
58 | - TEST_FILES_PATH . 'NamespaceCoverageMethodTest.php', |
|
59 | - TEST_FILES_PATH . 'NamespaceCoverageNotPrivateTest.php', |
|
60 | - TEST_FILES_PATH . 'NamespaceCoverageNotProtectedTest.php', |
|
61 | - TEST_FILES_PATH . 'NamespaceCoverageNotPublicTest.php', |
|
62 | - TEST_FILES_PATH . 'NamespaceCoveragePrivateTest.php', |
|
63 | - TEST_FILES_PATH . 'NamespaceCoverageProtectedTest.php', |
|
64 | - TEST_FILES_PATH . 'NamespaceCoveragePublicTest.php', |
|
65 | - TEST_FILES_PATH . 'NamespaceCoveredClass.php', |
|
66 | - TEST_FILES_PATH . 'NotExistingCoveredElementTest.php', |
|
67 | - TEST_FILES_PATH . 'source_with_class_and_anonymous_function.php', |
|
68 | - TEST_FILES_PATH . 'source_with_ignore.php', |
|
69 | - TEST_FILES_PATH . 'source_with_namespace.php', |
|
70 | - TEST_FILES_PATH . 'source_with_oneline_annotations.php', |
|
71 | - TEST_FILES_PATH . 'source_without_ignore.php', |
|
72 | - TEST_FILES_PATH . 'source_without_namespace.php' |
|
32 | + TEST_FILES_PATH.'BankAccount.php', |
|
33 | + TEST_FILES_PATH.'BankAccountTest.php', |
|
34 | + TEST_FILES_PATH.'CoverageClassExtendedTest.php', |
|
35 | + TEST_FILES_PATH.'CoverageClassTest.php', |
|
36 | + TEST_FILES_PATH.'CoverageFunctionParenthesesTest.php', |
|
37 | + TEST_FILES_PATH.'CoverageFunctionParenthesesWhitespaceTest.php', |
|
38 | + TEST_FILES_PATH.'CoverageFunctionTest.php', |
|
39 | + TEST_FILES_PATH.'CoverageMethodOneLineAnnotationTest.php', |
|
40 | + TEST_FILES_PATH.'CoverageMethodParenthesesTest.php', |
|
41 | + TEST_FILES_PATH.'CoverageMethodParenthesesWhitespaceTest.php', |
|
42 | + TEST_FILES_PATH.'CoverageMethodTest.php', |
|
43 | + TEST_FILES_PATH.'CoverageNoneTest.php', |
|
44 | + TEST_FILES_PATH.'CoverageNotPrivateTest.php', |
|
45 | + TEST_FILES_PATH.'CoverageNotProtectedTest.php', |
|
46 | + TEST_FILES_PATH.'CoverageNotPublicTest.php', |
|
47 | + TEST_FILES_PATH.'CoverageNothingTest.php', |
|
48 | + TEST_FILES_PATH.'CoveragePrivateTest.php', |
|
49 | + TEST_FILES_PATH.'CoverageProtectedTest.php', |
|
50 | + TEST_FILES_PATH.'CoveragePublicTest.php', |
|
51 | + TEST_FILES_PATH.'CoverageTwoDefaultClassAnnotations.php', |
|
52 | + TEST_FILES_PATH.'CoveredClass.php', |
|
53 | + TEST_FILES_PATH.'CoveredFunction.php', |
|
54 | + TEST_FILES_PATH.'NamespaceCoverageClassExtendedTest.php', |
|
55 | + TEST_FILES_PATH.'NamespaceCoverageClassTest.php', |
|
56 | + TEST_FILES_PATH.'NamespaceCoverageCoversClassPublicTest.php', |
|
57 | + TEST_FILES_PATH.'NamespaceCoverageCoversClassTest.php', |
|
58 | + TEST_FILES_PATH.'NamespaceCoverageMethodTest.php', |
|
59 | + TEST_FILES_PATH.'NamespaceCoverageNotPrivateTest.php', |
|
60 | + TEST_FILES_PATH.'NamespaceCoverageNotProtectedTest.php', |
|
61 | + TEST_FILES_PATH.'NamespaceCoverageNotPublicTest.php', |
|
62 | + TEST_FILES_PATH.'NamespaceCoveragePrivateTest.php', |
|
63 | + TEST_FILES_PATH.'NamespaceCoverageProtectedTest.php', |
|
64 | + TEST_FILES_PATH.'NamespaceCoveragePublicTest.php', |
|
65 | + TEST_FILES_PATH.'NamespaceCoveredClass.php', |
|
66 | + TEST_FILES_PATH.'NotExistingCoveredElementTest.php', |
|
67 | + TEST_FILES_PATH.'source_with_class_and_anonymous_function.php', |
|
68 | + TEST_FILES_PATH.'source_with_ignore.php', |
|
69 | + TEST_FILES_PATH.'source_with_namespace.php', |
|
70 | + TEST_FILES_PATH.'source_with_oneline_annotations.php', |
|
71 | + TEST_FILES_PATH.'source_without_ignore.php', |
|
72 | + TEST_FILES_PATH.'source_without_namespace.php' |
|
73 | 73 | ]; |
74 | 74 | } |
75 | 75 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | parent::setUpBeforeClass(); |
22 | 22 | |
23 | - self::$TEST_REPORT_PATH_SOURCE = TEST_FILES_PATH . 'Report' . DIRECTORY_SEPARATOR . 'HTML'; |
|
23 | + self::$TEST_REPORT_PATH_SOURCE = TEST_FILES_PATH.'Report'.DIRECTORY_SEPARATOR.'HTML'; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | protected function tearDown() |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | public function testForBankAccountTest() |
43 | 43 | { |
44 | - $expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE . DIRECTORY_SEPARATOR . 'CoverageForBankAccount'; |
|
44 | + $expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE.DIRECTORY_SEPARATOR.'CoverageForBankAccount'; |
|
45 | 45 | |
46 | 46 | $report = new Facade; |
47 | 47 | $report->process($this->getCoverageForBankAccount(), self::$TEST_TMP_PATH); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | public function testForFileWithIgnoredLines() |
53 | 53 | { |
54 | - $expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE . DIRECTORY_SEPARATOR . 'CoverageForFileWithIgnoredLines'; |
|
54 | + $expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE.DIRECTORY_SEPARATOR.'CoverageForFileWithIgnoredLines'; |
|
55 | 55 | |
56 | 56 | $report = new Facade; |
57 | 57 | $report->process($this->getCoverageForFileWithIgnoredLines(), self::$TEST_TMP_PATH); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | public function testForClassWithAnonymousFunction() |
63 | 63 | { |
64 | 64 | $expectedFilesPath = |
65 | - self::$TEST_REPORT_PATH_SOURCE . DIRECTORY_SEPARATOR . 'CoverageForClassWithAnonymousFunction'; |
|
65 | + self::$TEST_REPORT_PATH_SOURCE.DIRECTORY_SEPARATOR.'CoverageForClassWithAnonymousFunction'; |
|
66 | 66 | |
67 | 67 | $report = new Facade; |
68 | 68 | $report->process($this->getCoverageForClassWithAnonymousFunction(), self::$TEST_TMP_PATH); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /* @var \SplFileInfo $fileInfo */ |
90 | 90 | $filename = $fileInfo->getFilename(); |
91 | 91 | |
92 | - $actualFile = $actualFilesPath . DIRECTORY_SEPARATOR . $filename; |
|
92 | + $actualFile = $actualFilesPath.DIRECTORY_SEPARATOR.$filename; |
|
93 | 93 | |
94 | 94 | $this->assertFileExists($actualFile); |
95 | 95 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $crap4j = new Crap4j; |
23 | 23 | |
24 | 24 | $this->assertStringMatchesFormatFile( |
25 | - TEST_FILES_PATH . 'BankAccount-crap4j.xml', |
|
25 | + TEST_FILES_PATH.'BankAccount-crap4j.xml', |
|
26 | 26 | $crap4j->process($this->getCoverageForBankAccount(), null, 'BankAccount') |
27 | 27 | ); |
28 | 28 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $crap4j = new Crap4j; |
33 | 33 | |
34 | 34 | $this->assertStringMatchesFormatFile( |
35 | - TEST_FILES_PATH . 'ignored-lines-crap4j.xml', |
|
35 | + TEST_FILES_PATH.'ignored-lines-crap4j.xml', |
|
36 | 36 | $crap4j->process($this->getCoverageForFileWithIgnoredLines(), null, 'CoverageForFileWithIgnoredLines') |
37 | 37 | ); |
38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $crap4j = new Crap4j; |
43 | 43 | |
44 | 44 | $this->assertStringMatchesFormatFile( |
45 | - TEST_FILES_PATH . 'class-with-anonymous-function-crap4j.xml', |
|
45 | + TEST_FILES_PATH.'class-with-anonymous-function-crap4j.xml', |
|
46 | 46 | $crap4j->process($this->getCoverageForClassWithAnonymousFunction(), null, 'CoverageForClassWithAnonymousFunction') |
47 | 47 | ); |
48 | 48 | } |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | ], |
371 | 371 | $this->getLinesToBeIgnored()->invoke( |
372 | 372 | $this->coverage, |
373 | - TEST_FILES_PATH . 'source_with_ignore.php' |
|
373 | + TEST_FILES_PATH.'source_with_ignore.php' |
|
374 | 374 | ) |
375 | 375 | ); |
376 | 376 | } |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | [1, 5], |
382 | 382 | $this->getLinesToBeIgnored()->invoke( |
383 | 383 | $this->coverage, |
384 | - TEST_FILES_PATH . 'source_without_ignore.php' |
|
384 | + TEST_FILES_PATH.'source_without_ignore.php' |
|
385 | 385 | ) |
386 | 386 | ); |
387 | 387 | } |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | ], |
405 | 405 | $this->getLinesToBeIgnored()->invoke( |
406 | 406 | $this->coverage, |
407 | - TEST_FILES_PATH . 'source_with_class_and_anonymous_function.php' |
|
407 | + TEST_FILES_PATH.'source_with_class_and_anonymous_function.php' |
|
408 | 408 | ) |
409 | 409 | ); |
410 | 410 | } |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | ], |
448 | 448 | $this->getLinesToBeIgnored()->invoke( |
449 | 449 | $this->coverage, |
450 | - TEST_FILES_PATH . 'source_with_oneline_annotations.php' |
|
450 | + TEST_FILES_PATH.'source_with_oneline_annotations.php' |
|
451 | 451 | ) |
452 | 452 | ); |
453 | 453 | } |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | [], |
476 | 476 | $this->getLinesToBeIgnored()->invoke( |
477 | 477 | $this->coverage, |
478 | - TEST_FILES_PATH . 'source_with_ignore.php' |
|
478 | + TEST_FILES_PATH.'source_with_ignore.php' |
|
479 | 479 | ) |
480 | 480 | ); |
481 | 481 | } |
@@ -489,14 +489,14 @@ discard block |
||
489 | 489 | $this->coverage->setCheckForUnexecutedCoveredCode(true); |
490 | 490 | |
491 | 491 | $data = [ |
492 | - TEST_FILES_PATH . 'BankAccount.php' => [ |
|
492 | + TEST_FILES_PATH.'BankAccount.php' => [ |
|
493 | 493 | 29 => -1, |
494 | 494 | 31 => -1 |
495 | 495 | ] |
496 | 496 | ]; |
497 | 497 | |
498 | 498 | $linesToBeCovered = [ |
499 | - TEST_FILES_PATH . 'BankAccount.php' => [ |
|
499 | + TEST_FILES_PATH.'BankAccount.php' => [ |
|
500 | 500 | 22, |
501 | 501 | 24 |
502 | 502 | ] |
@@ -516,21 +516,21 @@ discard block |
||
516 | 516 | $this->coverage->setCheckForUnexecutedCoveredCode(true); |
517 | 517 | |
518 | 518 | $data = [ |
519 | - TEST_FILES_PATH . 'BankAccount.php' => [ |
|
519 | + TEST_FILES_PATH.'BankAccount.php' => [ |
|
520 | 520 | 29 => -1, |
521 | 521 | 31 => -1 |
522 | 522 | ] |
523 | 523 | ]; |
524 | 524 | |
525 | 525 | $linesToBeCovered = [ |
526 | - TEST_FILES_PATH . 'BankAccount.php' => [ |
|
526 | + TEST_FILES_PATH.'BankAccount.php' => [ |
|
527 | 527 | 29, |
528 | 528 | 31 |
529 | 529 | ] |
530 | 530 | ]; |
531 | 531 | |
532 | 532 | $linesToBeUsed = [ |
533 | - TEST_FILES_PATH . 'BankAccount.php' => [ |
|
533 | + TEST_FILES_PATH.'BankAccount.php' => [ |
|
534 | 534 | 22, |
535 | 535 | 24 |
536 | 536 | ] |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | parent::setUpBeforeClass(); |
22 | 22 | |
23 | - self::$TEST_REPORT_PATH_SOURCE = TEST_FILES_PATH . 'Report' . DIRECTORY_SEPARATOR . 'XML'; |
|
23 | + self::$TEST_REPORT_PATH_SOURCE = TEST_FILES_PATH.'Report'.DIRECTORY_SEPARATOR.'XML'; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | protected function tearDown() |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | public function testForBankAccountTest() |
39 | 39 | { |
40 | - $expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE . DIRECTORY_SEPARATOR . 'CoverageForBankAccount'; |
|
40 | + $expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE.DIRECTORY_SEPARATOR.'CoverageForBankAccount'; |
|
41 | 41 | |
42 | 42 | $xml = new Facade('1.0.0'); |
43 | 43 | $xml->process($this->getCoverageForBankAccount(), self::$TEST_TMP_PATH); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | public function testForFileWithIgnoredLines() |
49 | 49 | { |
50 | - $expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE . DIRECTORY_SEPARATOR . 'CoverageForFileWithIgnoredLines'; |
|
50 | + $expectedFilesPath = self::$TEST_REPORT_PATH_SOURCE.DIRECTORY_SEPARATOR.'CoverageForFileWithIgnoredLines'; |
|
51 | 51 | |
52 | 52 | $xml = new Facade('1.0.0'); |
53 | 53 | $xml->process($this->getCoverageForFileWithIgnoredLines(), self::$TEST_TMP_PATH); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | public function testForClassWithAnonymousFunction() |
59 | 59 | { |
60 | 60 | $expectedFilesPath = |
61 | - self::$TEST_REPORT_PATH_SOURCE . DIRECTORY_SEPARATOR . 'CoverageForClassWithAnonymousFunction'; |
|
61 | + self::$TEST_REPORT_PATH_SOURCE.DIRECTORY_SEPARATOR.'CoverageForClassWithAnonymousFunction'; |
|
62 | 62 | |
63 | 63 | $xml = new Facade('1.0.0'); |
64 | 64 | $xml->process($this->getCoverageForClassWithAnonymousFunction(), self::$TEST_TMP_PATH); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | /* @var \SplFileInfo $fileInfo */ |
86 | 86 | $filename = $fileInfo->getFilename(); |
87 | 87 | |
88 | - $actualFile = $actualFilesPath . DIRECTORY_SEPARATOR . $filename; |
|
88 | + $actualFile = $actualFilesPath.DIRECTORY_SEPARATOR.$filename; |
|
89 | 89 | |
90 | 90 | $this->assertFileExists($actualFile); |
91 | 91 |