@@ -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]; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $containerBuilder = new ContainerBuilder(); |
26 | 26 | |
27 | - $loader = new YamlFileLoader($containerBuilder, new FileLocator(__DIR__ . '/../Resources/config/')); |
|
27 | + $loader = new YamlFileLoader($containerBuilder, new FileLocator(__DIR__.'/../Resources/config/')); |
|
28 | 28 | $loader->load('services.yml'); |
29 | 29 | |
30 | 30 | $containerBuilder->addCompilerPass(new RegisterListenersPass()); |
@@ -41,8 +41,8 @@ |
||
41 | 41 | $it = new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS); |
42 | 42 | $files = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST); |
43 | 43 | |
44 | - foreach($files as $file) { |
|
45 | - if ($file->isDir()){ |
|
44 | + foreach ($files as $file) { |
|
45 | + if ($file->isDir()) { |
|
46 | 46 | rmdir($file->getRealPath()); |
47 | 47 | } else { |
48 | 48 | unlink($file->getRealPath()); |
@@ -29,10 +29,10 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function getTempDirForThisExecution() |
31 | 31 | { |
32 | - $dir = self::getTempBaseDir() . DIRECTORY_SEPARATOR . $this->timestamp; |
|
32 | + $dir = self::getTempBaseDir().DIRECTORY_SEPARATOR.$this->timestamp; |
|
33 | 33 | self::mkdirIfNotExists($dir); |
34 | - self::mkdirIfNotExists($dir . DIRECTORY_SEPARATOR . 'logs'); |
|
35 | - self::mkdirIfNotExists($dir . DIRECTORY_SEPARATOR . 'coverage'); |
|
34 | + self::mkdirIfNotExists($dir.DIRECTORY_SEPARATOR.'logs'); |
|
35 | + self::mkdirIfNotExists($dir.DIRECTORY_SEPARATOR.'coverage'); |
|
36 | 36 | |
37 | 37 | return $dir; |
38 | 38 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | foreach (self::$tempDirs as $directory) { |
46 | 46 | if (file_exists($directory)) { |
47 | - $baseDir = $directory . DIRECTORY_SEPARATOR . 'paraunit'; |
|
47 | + $baseDir = $directory.DIRECTORY_SEPARATOR.'paraunit'; |
|
48 | 48 | self::mkdirIfNotExists($baseDir); |
49 | 49 | |
50 | 50 | return $baseDir; |
@@ -30,6 +30,6 @@ |
||
30 | 30 | |
31 | 31 | public function generateFromUniqueId($uniqueId) |
32 | 32 | { |
33 | - return $this->tempDirectory->getTempDirForThisExecution() . '/logs/' . $uniqueId . '.json.log'; |
|
33 | + return $this->tempDirectory->getTempDirForThisExecution().'/logs/'.$uniqueId.'.json.log'; |
|
34 | 34 | } |
35 | 35 | } |