Skip to content

Commit 3157493

Browse files
committed
Added e2e test for '-vvv' without '--debug'. Aligned to coding standard.
1 parent 4820056 commit 3157493

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/e2e-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ jobs:
446446
OUTPUT=$(../../bin/phpstan analyze -l 0 -vvv --debug --configuration parallel.neon test.php 2>&1)
447447
echo "$OUTPUT"
448448
../bashunit -a not_contains 'Parallel processing scheduler' "$OUTPUT"
449+
- script: |
450+
cd e2e/vvv-with-debug
451+
OUTPUT=$(../../bin/phpstan analyze -l 0 -vvv test.php 2>&1)
452+
echo "$OUTPUT"
453+
../bashunit -a contains 'Parallel processing scheduler' "$OUTPUT"
449454
450455
steps:
451456
- name: Harden the runner (Audit all outbound calls)

src/Command/AnalyserRunner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function runAnalyser(
7979
$mainScript = $_SERVER['argv'][0];
8080
}
8181

82-
if (($mainScript !== null) && ($schedule->getNumberOfProcesses() > 0)) {
82+
if ($mainScript !== null && $schedule->getNumberOfProcesses() > 0) {
8383
$loop = new StreamSelectLoop();
8484
$result = null;
8585
$promise = $this->parallelAnalyser->analyse($loop, $schedule, $mainScript, $postFileCallback, $projectConfigFile, $tmpFile, $insteadOfFile, $input, null);

0 commit comments

Comments
 (0)