@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/InheritanceB.php'; |
|
3 | +require_once __DIR__.'/InheritanceB.php'; |
|
4 | 4 | |
5 | 5 | class InheritanceA extends InheritanceB |
6 | 6 | { |
@@ -5,49 +5,49 @@ |
||
5 | 5 | { |
6 | 6 | public static function setUpBeforeClass() |
7 | 7 | { |
8 | - print __METHOD__ . "\n"; |
|
8 | + print __METHOD__."\n"; |
|
9 | 9 | } |
10 | 10 | |
11 | 11 | protected function setUp() |
12 | 12 | { |
13 | - print __METHOD__ . "\n"; |
|
13 | + print __METHOD__."\n"; |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | protected function assertPreConditions() |
17 | 17 | { |
18 | - print __METHOD__ . "\n"; |
|
18 | + print __METHOD__."\n"; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | public function testOne() |
22 | 22 | { |
23 | - print __METHOD__ . "\n"; |
|
23 | + print __METHOD__."\n"; |
|
24 | 24 | $this->assertTrue(true); |
25 | 25 | } |
26 | 26 | |
27 | 27 | public function testTwo() |
28 | 28 | { |
29 | - print __METHOD__ . "\n"; |
|
29 | + print __METHOD__."\n"; |
|
30 | 30 | $this->assertTrue(false); |
31 | 31 | } |
32 | 32 | |
33 | 33 | protected function assertPostConditions() |
34 | 34 | { |
35 | - print __METHOD__ . "\n"; |
|
35 | + print __METHOD__."\n"; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | protected function tearDown() |
39 | 39 | { |
40 | - print __METHOD__ . "\n"; |
|
40 | + print __METHOD__."\n"; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | public static function tearDownAfterClass() |
44 | 44 | { |
45 | - print __METHOD__ . "\n"; |
|
45 | + print __METHOD__."\n"; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | protected function onNotSuccessfulTest(Exception $t) |
49 | 49 | { |
50 | - print __METHOD__ . "\n"; |
|
50 | + print __METHOD__."\n"; |
|
51 | 51 | throw $t; |
52 | 52 | } |
53 | 53 | } |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | -$globalString = 'Hello'; |
|
2 | +$globalString = 'Hello'; |
|
3 | 3 | |
4 | -require __DIR__ . '/../../../bootstrap.php'; |
|
5 | 4 | \ No newline at end of file |
5 | +require __DIR__.'/../../../bootstrap.php'; |
|
6 | 6 | \ No newline at end of file |
@@ -2,6 +2,6 @@ |
||
2 | 2 | ini_set('display_errors', 0); |
3 | 3 | ini_set('log_errors', 1); |
4 | 4 | |
5 | -$globalString = 'Hello'; |
|
5 | +$globalString = 'Hello'; |
|
6 | 6 | |
7 | 7 | // require __DIR__ . '/../../../bootstrap.php'; |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | // $globalString = 'Hello'; |
3 | 3 | |
4 | -require __DIR__ . '/../../../bootstrap.php'; |
|
5 | 4 | \ No newline at end of file |
5 | +require __DIR__.'/../../../bootstrap.php'; |
|
6 | 6 | \ No newline at end of file |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | // If process isolation fails to include this file, then |
3 | 3 | // PHPUnit_Framework_TestCase itself does not exist. :-) |
4 | -require __DIR__ . '/../../../bootstrap.php'; |
|
4 | +require __DIR__.'/../../../bootstrap.php'; |
|
5 | 5 | |
6 | 6 | const GITHUB_ISSUE = 797; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | public function testSomething() |
10 | 10 | { |
11 | - include __DIR__ . '/constant.inc'; |
|
11 | + include __DIR__.'/constant.inc'; |
|
12 | 12 | $this->assertTrue(true); |
13 | 13 | } |
14 | 14 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | { |
6 | 6 | public function testCreateAndThrowNewExceptionInProcessIsolation() |
7 | 7 | { |
8 | - require_once __DIR__ . '/NewException.php'; |
|
8 | + require_once __DIR__.'/NewException.php'; |
|
9 | 9 | throw new NewException('Testing GH-74'); |
10 | 10 | } |
11 | 11 | } |
@@ -130,8 +130,8 @@ discard block |
||
130 | 130 | |
131 | 131 | $classShortcut = null; |
132 | 132 | |
133 | - if (!empty($annotations['class'][$mode . 'DefaultClass'])) { |
|
134 | - if (\count($annotations['class'][$mode . 'DefaultClass']) > 1) { |
|
133 | + if (!empty($annotations['class'][$mode.'DefaultClass'])) { |
|
134 | + if (\count($annotations['class'][$mode.'DefaultClass']) > 1) { |
|
135 | 135 | throw new CodeCoverageException( |
136 | 136 | \sprintf( |
137 | 137 | 'More than one @%sClass annotation in class or interface "%s".', |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | ); |
142 | 142 | } |
143 | 143 | |
144 | - $classShortcut = $annotations['class'][$mode . 'DefaultClass'][0]; |
|
144 | + $classShortcut = $annotations['class'][$mode.'DefaultClass'][0]; |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | $list = []; |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | foreach (\array_unique($list) as $element) { |
160 | 160 | if ($classShortcut && \strncmp($element, '::', 2) === 0) { |
161 | - $element = $classShortcut . $element; |
|
161 | + $element = $classShortcut.$element; |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | $element = \preg_replace('/[\s()]+$/', '', $element); |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | $reflector = new ReflectionClass($className); |
188 | 188 | $docComment = $reflector->getDocComment(); |
189 | 189 | $reflector = new ReflectionMethod($className, $methodName); |
190 | - $docComment .= "\n" . $reflector->getDocComment(); |
|
190 | + $docComment .= "\n".$reflector->getDocComment(); |
|
191 | 191 | $requires = []; |
192 | 192 | |
193 | 193 | if ($count = \preg_match_all(self::REGEX_REQUIRES_OS, $docComment, $matches)) { |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | try { |
214 | 214 | $versionConstraintParser = new VersionConstraintParser; |
215 | 215 | |
216 | - $requires[$matches['name'][$i] . '_constraint'] = [ |
|
216 | + $requires[$matches['name'][$i].'_constraint'] = [ |
|
217 | 217 | 'constraint' => $versionConstraintParser->parse(\trim($matches['constraint'][$i])) |
218 | 218 | ]; |
219 | 219 | } catch (\PharIo\Version\Exception $e) { |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | |
225 | 225 | if ($count = \preg_match_all(self::REGEX_REQUIRES, $docComment, $matches)) { |
226 | 226 | foreach (\range(0, $count - 1) as $i) { |
227 | - $name = $matches['name'][$i] . 's'; |
|
227 | + $name = $matches['name'][$i].'s'; |
|
228 | 228 | |
229 | 229 | if (!isset($requires[$name])) { |
230 | 230 | $requires[$name] = []; |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | throw new Exception( |
463 | 463 | \sprintf( |
464 | 464 | 'Data set %s is invalid.', |
465 | - \is_int($key) ? '#' . $key : '"' . $key . '"' |
|
465 | + \is_int($key) ? '#'.$key : '"'.$key.'"' |
|
466 | 466 | ) |
467 | 467 | ); |
468 | 468 | } |
@@ -495,13 +495,13 @@ discard block |
||
495 | 495 | $dataProviderMethodName = \array_pop($leaf); |
496 | 496 | |
497 | 497 | if (!empty($dataProviderMethodNameNamespace)) { |
498 | - $dataProviderMethodNameNamespace = \implode('\\', $dataProviderMethodNameNamespace) . '\\'; |
|
498 | + $dataProviderMethodNameNamespace = \implode('\\', $dataProviderMethodNameNamespace).'\\'; |
|
499 | 499 | } else { |
500 | 500 | $dataProviderMethodNameNamespace = ''; |
501 | 501 | } |
502 | 502 | |
503 | 503 | if (!empty($leaf)) { |
504 | - $dataProviderClassName = $dataProviderMethodNameNamespace . \array_pop($leaf); |
|
504 | + $dataProviderClassName = $dataProviderMethodNameNamespace.\array_pop($leaf); |
|
505 | 505 | } else { |
506 | 506 | $dataProviderClassName = $className; |
507 | 507 | } |
@@ -564,7 +564,7 @@ discard block |
||
564 | 564 | |
565 | 565 | if (\json_last_error() != JSON_ERROR_NONE) { |
566 | 566 | throw new Exception( |
567 | - 'The dataset for the @testWith annotation cannot be parsed: ' . \json_last_error_msg() |
|
567 | + 'The dataset for the @testWith annotation cannot be parsed: '.\json_last_error_msg() |
|
568 | 568 | ); |
569 | 569 | } |
570 | 570 | |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | { |
584 | 584 | //removing initial ' * ' for docComment |
585 | 585 | $docComment = \str_replace("\r\n", "\n", $docComment); |
586 | - $docComment = \preg_replace('/' . '\n' . '\s*' . '\*' . '\s?' . '/', "\n", $docComment); |
|
586 | + $docComment = \preg_replace('/'.'\n'.'\s*'.'\*'.'\s?'.'/', "\n", $docComment); |
|
587 | 587 | $docComment = \substr($docComment, 0, -1); |
588 | 588 | $docComment = \rtrim($docComment, "\n"); |
589 | 589 | |
@@ -618,7 +618,7 @@ discard block |
||
618 | 618 | ); |
619 | 619 | } |
620 | 620 | |
621 | - if (!empty($methodName) && !isset(self::$annotationCache[$className . '::' . $methodName])) { |
|
621 | + if (!empty($methodName) && !isset(self::$annotationCache[$className.'::'.$methodName])) { |
|
622 | 622 | try { |
623 | 623 | $method = new ReflectionMethod($className, $methodName); |
624 | 624 | $annotations = self::parseAnnotations($method->getDocComment()); |
@@ -626,12 +626,12 @@ discard block |
||
626 | 626 | $annotations = []; |
627 | 627 | } |
628 | 628 | |
629 | - self::$annotationCache[$className . '::' . $methodName] = $annotations; |
|
629 | + self::$annotationCache[$className.'::'.$methodName] = $annotations; |
|
630 | 630 | } |
631 | 631 | |
632 | 632 | return [ |
633 | 633 | 'class' => self::$annotationCache[$className], |
634 | - 'method' => !empty($methodName) ? self::$annotationCache[$className . '::' . $methodName] : [] |
|
634 | + 'method' => !empty($methodName) ? self::$annotationCache[$className.'::'.$methodName] : [] |
|
635 | 635 | ]; |
636 | 636 | } |
637 | 637 | |
@@ -1005,7 +1005,7 @@ discard block |
||
1005 | 1005 | !\trait_exists($className)) { |
1006 | 1006 | throw new InvalidCoversTargetException( |
1007 | 1007 | \sprintf( |
1008 | - 'Trying to @cover or @use not existing class or ' . |
|
1008 | + 'Trying to @cover or @use not existing class or '. |
|
1009 | 1009 | 'interface "%s".', |
1010 | 1010 | $className |
1011 | 1011 | ) |
@@ -1083,7 +1083,7 @@ discard block |
||
1083 | 1083 | !\trait_exists($className)) { |
1084 | 1084 | throw new InvalidCoversTargetException( |
1085 | 1085 | \sprintf( |
1086 | - 'Trying to @cover or @use not existing class or ' . |
|
1086 | + 'Trying to @cover or @use not existing class or '. |
|
1087 | 1087 | 'interface "%s".', |
1088 | 1088 | $className |
1089 | 1089 | ) |