Skip to content

Commit

Permalink
Change expected output for more exactly
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-ml committed Feb 19, 2024
1 parent ff3c1b9 commit f9c5e1b
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions test/Unit/WrapperRunner/WrapperRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,18 @@ public function testFunctionalParallelization(): void
$this->bareOptions['--functional'] = true;

$runnerResult = $this->runRunner();
self::assertStringContainsString('..........', $runnerResult->output);
self::assertStringContainsString('10 / 10 (100%)', $runnerResult->output);

$expectedOutput = <<<'EOF'
Processes: 2
Runtime: PHP %s
.......... 10 / 10 (100%)
Time: %s, Memory: %s MB
OK%a
EOF;
self::assertStringMatchesFormat($expectedOutput, $runnerResult->output);
self::assertSame(RunnerInterface::SUCCESS_EXIT, $runnerResult->exitCode);
}

Expand All @@ -650,8 +660,18 @@ public function testFunctionalParallelizationWithJunitLogging(): void
$this->bareOptions['--log-junit'] = $outputFile;

$runnerResult = $this->runRunner();
self::assertStringContainsString('..........', $runnerResult->output);
self::assertStringContainsString('10 / 10 (100%)', $runnerResult->output);

$expectedOutput = <<<'EOF'
Processes: 1
Runtime: PHP %s
.......... 10 / 10 (100%)
Time: %s, Memory: %s MB
OK%a
EOF;
self::assertStringMatchesFormat($expectedOutput, $runnerResult->output);
self::assertSame(RunnerInterface::SUCCESS_EXIT, $runnerResult->exitCode);
}

Expand Down

0 comments on commit f9c5e1b

Please sign in to comment.