@@ -147,6 +147,6 @@ |
||
| 147 | 147 | */ |
| 148 | 148 | public function isEmpty() |
| 149 | 149 | { |
| 150 | - return (bool) count($this->filename); |
|
| 150 | + return (bool)count($this->filename); |
|
| 151 | 151 | } |
| 152 | 152 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $this->output = $processEvent->get('output_interface'); |
| 32 | 32 | |
| 33 | 33 | if ( ! $this->output instanceof OutputInterface) { |
| 34 | - throw new \BadMethodCallException('output_interface, unexpected type: ' . get_class($this->output)); |
|
| 34 | + throw new \BadMethodCallException('output_interface, unexpected type: '.get_class($this->output)); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | switch (true) { |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __construct(ParaunitProcessInterface $process) |
| 13 | 13 | { |
| 14 | - parent::__construct('JSON log not found for test; commandline: ' . $process->getCommandLine()); |
|
| 14 | + parent::__construct('JSON log not found for test; commandline: '.$process->getCommandLine()); |
|
| 15 | 15 | } |
| 16 | 16 | } |
@@ -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()) { |
@@ -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 | /** |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | public function get($contextParameterName) |
| 32 | 32 | { |
| 33 | 33 | if ( ! $this->has($contextParameterName)) { |
| 34 | - throw new \LogicException('Cannot find parameter: ' . $contextParameterName); |
|
| 34 | + throw new \LogicException('Cannot find parameter: '.$contextParameterName); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | return $this->context[$contextParameterName]; |