@@ -77,6 +77,6 @@ |
||
77 | 77 | { |
78 | 78 | $regex = implode('|', $patterns); |
79 | 79 | |
80 | - return '/' . $regex . '/'; |
|
80 | + return '/'.$regex.'/'; |
|
81 | 81 | } |
82 | 82 | } |
@@ -50,6 +50,6 @@ |
||
50 | 50 | { |
51 | 51 | $splitted = preg_replace('/\}\{/', '},{', $jsonString); |
52 | 52 | |
53 | - return '[' . $splitted . ']'; |
|
53 | + return '['.$splitted.']'; |
|
54 | 54 | } |
55 | 55 | } |
@@ -167,7 +167,7 @@ |
||
167 | 167 | if (array_key_exists($pHash, $this->processRunning)) { |
168 | 168 | unset($this->processRunning[$pHash]); |
169 | 169 | } else { |
170 | - throw new \Exception('Trying to remove a non-existing process from running stack\! ID: ' . $pHash); |
|
170 | + throw new \Exception('Trying to remove a non-existing process from running stack\! ID: '.$pHash); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | if ($process->isToBeRetried()) { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public function filterTestFiles(PHPUnitConfigFile $configFile, $testSuiteFilter = null) |
40 | 40 | { |
41 | 41 | $aggregatedFiles = array(); |
42 | - $this->relativePath = $configFile->getDirectory() . DIRECTORY_SEPARATOR; |
|
42 | + $this->relativePath = $configFile->getDirectory().DIRECTORY_SEPARATOR; |
|
43 | 43 | |
44 | 44 | $document = $this->utilXml->loadFile($configFile->getFileFullPath(), false, true, true); |
45 | 45 | $xpath = new \DOMXPath($document); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | $directory = (string)$directoryNode->nodeValue; |
95 | 95 | |
96 | 96 | $files = $this->fileIteratorFacade->getFilesAsArray( |
97 | - $this->relativePath . $directory, |
|
97 | + $this->relativePath.$directory, |
|
98 | 98 | $this->getDOMNodeAttribute($directoryNode, 'suffix', 'Test.php'), |
99 | 99 | $this->getDOMNodeAttribute($directoryNode, 'prefix', ''), |
100 | 100 | $excludes |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | private function addTestsFromFileNodes(\DOMNode $testSuiteNode, array &$aggregatedFiles) |
114 | 114 | { |
115 | 115 | foreach ($testSuiteNode->getElementsByTagName('file') as $fileNode) { |
116 | - $fileName = $this->relativePath . (string)$fileNode->nodeValue; |
|
116 | + $fileName = $this->relativePath.(string)$fileNode->nodeValue; |
|
117 | 117 | $this->addFileToAggregateArray($aggregatedFiles, $fileName); |
118 | 118 | } |
119 | 119 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | public function get($contextParameterName) |
59 | 59 | { |
60 | - if (!$this->has($contextParameterName)) { |
|
60 | + if ( ! $this->has($contextParameterName)) { |
|
61 | 61 | throw new \LogicException('Cannot find parameter: '.$contextParameterName); |
62 | 62 | } |
63 | 63 |
@@ -130,7 +130,7 @@ |
||
130 | 130 | $process->reportAbnormalTermination(); |
131 | 131 | $this->getAbnormalTerminatedOutputContainer()->addToOutputBuffer( |
132 | 132 | $process, |
133 | - 'Culpable test function: ' . $culpableFunctionName . " -- complete test output:\n\n" . $process->getOutput() |
|
133 | + 'Culpable test function: '.$culpableFunctionName." -- complete test output:\n\n".$process->getOutput() |
|
134 | 134 | ); |
135 | 135 | } |
136 | 136 | } |
@@ -90,9 +90,9 @@ |
||
90 | 90 | $stackTrace = ''; |
91 | 91 | |
92 | 92 | foreach ($log->trace as $step) { |
93 | - $stackTrace .= "\n" . $step->file . ':' . $step->line; |
|
93 | + $stackTrace .= "\n".$step->file.':'.$step->line; |
|
94 | 94 | } |
95 | 95 | |
96 | - return $log->test . "\n" . $log->message . "\n" . $stackTrace; |
|
96 | + return $log->test."\n".$log->message."\n".$stackTrace; |
|
97 | 97 | } |
98 | 98 | } |
@@ -66,11 +66,11 @@ |
||
66 | 66 | */ |
67 | 67 | private function createCommandLine($testFilePath, $uniqueId) |
68 | 68 | { |
69 | - return $this->phpUnitBin . |
|
70 | - ' -c ' . $this->phpunitConfigFile->getFileFullPath() . |
|
71 | - ' --colors=never' . |
|
72 | - ' --log-json=' . $this->jsonLogFilename->generateFromUniqueId($uniqueId) . |
|
73 | - ' ' . $testFilePath; |
|
69 | + return $this->phpUnitBin. |
|
70 | + ' -c '.$this->phpunitConfigFile->getFileFullPath(). |
|
71 | + ' --colors=never'. |
|
72 | + ' --log-json='.$this->jsonLogFilename->generateFromUniqueId($uniqueId). |
|
73 | + ' '.$testFilePath; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |