Skip to content

Commit

Permalink
Update PHPUnit compatibility to 10.0.16 (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk authored Mar 13, 2023
1 parent 429bf1d commit abc1231
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,25 @@
"ext-simplexml": "*",
"fidry/cpu-core-counter": "^0.4.1 || ^0.5.1",
"jean85/pretty-package-versions": "^2.0.5",
"phpunit/php-code-coverage": "^10.0",
"phpunit/php-file-iterator": "^4.0",
"phpunit/php-code-coverage": "^10.0.2",
"phpunit/php-file-iterator": "^4.0.1",
"phpunit/php-timer": "^6.0",
"phpunit/phpunit": "^10.0.6",
"phpunit/phpunit": "^10.0.16",
"sebastian/environment": "^6.0",
"symfony/console": "^6.2.5",
"symfony/process": "^6.2.5"
"symfony/console": "^6.2.7",
"symfony/process": "^6.2.7"
},
"require-dev": {
"ext-pcov": "*",
"ext-posix": "*",
"doctrine/coding-standard": "^11.1.0",
"infection/infection": "^0.26.19",
"phpstan/phpstan": "^1.9",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-strict-rules": "^1.4",
"squizlabs/php_codesniffer": "^3.7.1",
"symfony/filesystem": "^6.2.5"
"phpstan/phpstan": "^1.10.6",
"phpstan/phpstan-deprecation-rules": "^1.1.2",
"phpstan/phpstan-phpunit": "^1.3.10",
"phpstan/phpstan-strict-rules": "^1.5",
"squizlabs/php_codesniffer": "^3.7.2",
"symfony/filesystem": "^6.2.7"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 2 additions & 3 deletions src/WrapperRunner/ApplicationForWrapperWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use ParaTest\RunnerInterface;
use PHPUnit\Event\Facade as EventFacade;
use PHPUnit\Event\TestSuite\TestSuite as EventTestSuite;
use PHPUnit\Event\TestSuite\TestSuiteBuilder;
use PHPUnit\Framework\TestSuite;
use PHPUnit\Logging\JUnit\JunitXmlLogger;
use PHPUnit\Logging\TeamCity\TeamCityLogger;
Expand Down Expand Up @@ -66,7 +66,7 @@ public function runTest(string $testPath): int
(new TestSuiteFilterProcessor())->process($this->configuration, $testSuite);

EventFacade::emitter()->testRunnerExecutionStarted(
EventTestSuite::fromTestSuite($testSuite),
TestSuiteBuilder::from($testSuite),
);

$testSuite->run();
Expand Down Expand Up @@ -159,7 +159,6 @@ public function end(): void

(new TestDoxResultPrinter(DefaultPrinter::from($this->testdoxFile), $this->testdoxColor))->print(
$this->testdoxResultCollector->testMethodsGroupedByClass(),
$result,
);
}

Expand Down
6 changes: 6 additions & 0 deletions src/WrapperRunner/ResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ public function printResults(TestResult $testResult, array $teamcityFiles, array

$resultPrinter = new DefaultResultPrinter(
$this->printer,
true,
true,
true,
true,
true,
true,
$this->options->configuration->displayDetailsOnIncompleteTests(),
$this->options->configuration->displayDetailsOnSkippedTests(),
$this->options->configuration->displayDetailsOnTestsThatTriggerDeprecations(),
Expand Down

0 comments on commit abc1231

Please sign in to comment.