@@ -132,6 +132,7 @@ |
||
| 132 | 132 | * @param \DOMNode $testSuiteNode |
| 133 | 133 | * @param string $nodeName |
| 134 | 134 | * @param string | null $defaultValue |
| 135 | + * @param string $defaultValue |
|
| 135 | 136 | * |
| 136 | 137 | * @return string |
| 137 | 138 | */ |
@@ -1,3 +1,3 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -require __DIR__.'/vendor/autoload.php'; |
|
| 3 | +require __DIR__ . '/vendor/autoload.php'; |
|
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | new EngineEvent($files, $outputInterface, array('start' => $start,)) |
| 73 | 73 | ); |
| 74 | 74 | |
| 75 | - while ( ! empty($this->processStack) || ! empty($this->processRunning)) { |
|
| 75 | + while (!empty($this->processStack) || !empty($this->processRunning)) { |
|
| 76 | 76 | |
| 77 | 77 | if ($process = $this->runProcess($debug)) { |
| 78 | 78 | $this->eventDispatcher->dispatch(ProcessEvent::PROCESS_STARTED, new ProcessEvent($process)); |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | protected function runProcess($debug) |
| 142 | 142 | { |
| 143 | - if ($this->maxProcessNumber > count($this->processRunning) && ! empty($this->processStack)) { |
|
| 143 | + if ($this->maxProcessNumber > count($this->processRunning) && !empty($this->processStack)) { |
|
| 144 | 144 | /** @var ParaunitProcessInterface $process */ |
| 145 | 145 | $process = array_pop($this->processStack); |
| 146 | 146 | $process->start(); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public function createProcess($testFilePath) |
| 35 | 35 | { |
| 36 | - if ( ! $this->phpunitConfigFile instanceof PHPUnitConfigFile) { |
|
| 36 | + if (!$this->phpunitConfigFile instanceof PHPUnitConfigFile) { |
|
| 37 | 37 | throw new \Exception('PHPUnit config missing'); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function writeln($messages, $type = self::OUTPUT_NORMAL) |
| 25 | 25 | { |
| 26 | - $this->outputBuffer .= "\n".$messages; |
|
| 26 | + $this->outputBuffer .= "\n" . $messages; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | public function get($contextParameterName) |
| 59 | 59 | { |
| 60 | 60 | if (!$this->has($contextParameterName)) { |
| 61 | - throw new \LogicException('Cannot find parameter: '.$contextParameterName); |
|
| 61 | + throw new \LogicException('Cannot find parameter: ' . $contextParameterName); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | return $this->context[$contextParameterName]; |
@@ -21,10 +21,10 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | public function __construct() |
| 23 | 23 | { |
| 24 | - if (file_exists(__DIR__.self::PHPUNIT_RELPATH_FOR_VENDOR)) { |
|
| 25 | - $this->phpUnitBin = __DIR__.self::PHPUNIT_RELPATH_FOR_VENDOR; |
|
| 26 | - } elseif (file_exists(__DIR__.self::PHPUNIT_RELPATH_FOR_STANDALONE)) { |
|
| 27 | - $this->phpUnitBin = __DIR__.self::PHPUNIT_RELPATH_FOR_STANDALONE; |
|
| 24 | + if (file_exists(__DIR__ . self::PHPUNIT_RELPATH_FOR_VENDOR)) { |
|
| 25 | + $this->phpUnitBin = __DIR__ . self::PHPUNIT_RELPATH_FOR_VENDOR; |
|
| 26 | + } elseif (file_exists(__DIR__ . self::PHPUNIT_RELPATH_FOR_STANDALONE)) { |
|
| 27 | + $this->phpUnitBin = __DIR__ . self::PHPUNIT_RELPATH_FOR_STANDALONE; |
|
| 28 | 28 | } else { |
| 29 | 29 | throw new \Exception('PHPUnit bin not found'); |
| 30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | ? $inputPathOrFileName . DIRECTORY_SEPARATOR . self::DEFAULT_FILE_NAME |
| 25 | 25 | : $inputPathOrFileName; |
| 26 | 26 | |
| 27 | - if ( ! is_file($configFile) || ! is_readable($configFile)) { |
|
| 27 | + if (!is_file($configFile) || !is_readable($configFile)) { |
|
| 28 | 28 | throw new \InvalidArgumentException('Config file ' . $configFile . ' does not exist or is not readable'); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | public function onEngineStart(EngineEvent $engineEvent) |
| 18 | 18 | { |
| 19 | 19 | |
| 20 | - $outputInterface= $engineEvent->getOutputInterface(); |
|
| 20 | + $outputInterface = $engineEvent->getOutputInterface(); |
|
| 21 | 21 | |
| 22 | 22 | if ($outputInterface->getFormatter()) { |
| 23 | 23 | $style = new OutputFormatterStyle('green', null, array('bold', 'blink')); |