@@ -49,6 +49,6 @@ |
||
49 | 49 | */ |
50 | 50 | public function toString() |
51 | 51 | { |
52 | - return 'ends with "' . $this->suffix . '"'; |
|
52 | + return 'ends with "'.$this->suffix.'"'; |
|
53 | 53 | } |
54 | 54 | } |
@@ -92,6 +92,6 @@ |
||
92 | 92 | */ |
93 | 93 | public function toString() |
94 | 94 | { |
95 | - return 'contains only values of type "' . $this->type . '"'; |
|
95 | + return 'contains only values of type "'.$this->type.'"'; |
|
96 | 96 | } |
97 | 97 | } |
@@ -107,11 +107,11 @@ discard block |
||
107 | 107 | $additionalFailureDescription = $this->additionalFailureDescription($other); |
108 | 108 | |
109 | 109 | if ($additionalFailureDescription) { |
110 | - $failureDescription .= "\n" . $additionalFailureDescription; |
|
110 | + $failureDescription .= "\n".$additionalFailureDescription; |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | if (!empty($description)) { |
114 | - $failureDescription = $description . "\n" . $failureDescription; |
|
114 | + $failureDescription = $description."\n".$failureDescription; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | throw new ExpectationFailedException( |
@@ -150,6 +150,6 @@ discard block |
||
150 | 150 | */ |
151 | 151 | protected function failureDescription($other) |
152 | 152 | { |
153 | - return $this->exporter->export($other) . ' ' . $this->toString(); |
|
153 | + return $this->exporter->export($other).' '.$this->toString(); |
|
154 | 154 | } |
155 | 155 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | public function toString() |
100 | 100 | { |
101 | - return 'has the subset ' . $this->exporter->export($this->subset); |
|
101 | + return 'has the subset '.$this->exporter->export($this->subset); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | protected function failureDescription($other) |
115 | 115 | { |
116 | - return 'an array ' . $this->toString(); |
|
116 | + return 'an array '.$this->toString(); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -67,7 +67,7 @@ |
||
67 | 67 | if (!isset($this->types[$type])) { |
68 | 68 | throw new \PHPUnit\Framework\Exception( |
69 | 69 | \sprintf( |
70 | - 'Type specified for PHPUnit\Framework\Constraint\IsType <%s> ' . |
|
70 | + 'Type specified for PHPUnit\Framework\Constraint\IsType <%s> '. |
|
71 | 71 | 'is not a valid type.', |
72 | 72 | $type |
73 | 73 | ) |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function toString() |
65 | 65 | { |
66 | - return 'has the key ' . $this->exporter->export($this->key); |
|
66 | + return 'has the key '.$this->exporter->export($this->key); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
@@ -78,6 +78,6 @@ discard block |
||
78 | 78 | */ |
79 | 79 | protected function failureDescription($other) |
80 | 80 | { |
81 | - return 'an array ' . $this->toString(); |
|
81 | + return 'an array '.$this->toString(); |
|
82 | 82 | } |
83 | 83 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | '%c' |
82 | 82 | ], |
83 | 83 | [ |
84 | - '\\' . DIRECTORY_SEPARATOR, |
|
84 | + '\\'.DIRECTORY_SEPARATOR, |
|
85 | 85 | '[^\r\n]+', |
86 | 86 | '[^\r\n]*', |
87 | 87 | '.+', |
@@ -96,6 +96,6 @@ discard block |
||
96 | 96 | \preg_quote($string, '/') |
97 | 97 | ); |
98 | 98 | |
99 | - return '/^' . $string . '$/s'; |
|
99 | + return '/^'.$string.'$/s'; |
|
100 | 100 | } |
101 | 101 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | |
151 | 151 | if (!$theClass->isSubclassOf(TestCase::class)) { |
152 | 152 | throw new Exception( |
153 | - 'Class "' . $theClass->name . '" does not extend PHPUnit\Framework\TestCase.' |
|
153 | + 'Class "'.$theClass->name.'" does not extend PHPUnit\Framework\TestCase.' |
|
154 | 154 | ); |
155 | 155 | } |
156 | 156 | |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | // PSR-1 local shortname ('NameSpace\ShortName'). The comparison must be |
336 | 336 | // anchored to prevent false-positive matches (e.g., 'OtherShortName'). |
337 | 337 | $shortname = \basename($filename, '.php'); |
338 | - $shortnameRegEx = '/(?:^|_|\\\\)' . \preg_quote($shortname, '/') . '$/'; |
|
338 | + $shortnameRegEx = '/(?:^|_|\\\\)'.\preg_quote($shortname, '/').'$/'; |
|
339 | 339 | |
340 | 340 | foreach ($this->foundClasses as $i => $className) { |
341 | 341 | if (\preg_match($shortnameRegEx, $className)) { |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | $_message = $e->getMessage(); |
481 | 481 | |
482 | 482 | if (!empty($_message)) { |
483 | - $message .= "\n" . $_message; |
|
483 | + $message .= "\n".$_message; |
|
484 | 484 | } |
485 | 485 | |
486 | 486 | $data = self::incompleteTest($className, $name, $message); |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | $_message = $e->getMessage(); |
495 | 495 | |
496 | 496 | if (!empty($_message)) { |
497 | - $message .= "\n" . $_message; |
|
497 | + $message .= "\n".$_message; |
|
498 | 498 | } |
499 | 499 | |
500 | 500 | $data = self::skipTest($className, $name, $message); |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | $_message = $t->getMessage(); |
515 | 515 | |
516 | 516 | if (!empty($_message)) { |
517 | - $message .= "\n" . $_message; |
|
517 | + $message .= "\n".$_message; |
|
518 | 518 | } |
519 | 519 | |
520 | 520 | $data = self::warning($message); |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | // Test method with @dataProvider. |
524 | 524 | if (isset($data)) { |
525 | 525 | $test = new DataProviderTestSuite( |
526 | - $className . '::' . $name |
|
526 | + $className.'::'.$name |
|
527 | 527 | ); |
528 | 528 | |
529 | 529 | if (empty($data)) { |
@@ -54,7 +54,7 @@ |
||
54 | 54 | public function getTest($suiteClassName, $suiteClassFile = '', $suffixes = '') |
55 | 55 | { |
56 | 56 | if (\is_dir($suiteClassName) && |
57 | - !\is_file($suiteClassName . '.php') && empty($suiteClassFile)) { |
|
57 | + !\is_file($suiteClassName.'.php') && empty($suiteClassFile)) { |
|
58 | 58 | $facade = new File_Iterator_Facade; |
59 | 59 | $files = $facade->getFilesAsArray( |
60 | 60 | $suiteClassName, |