Skip to content

Commit

Permalink
Add support for PHPUnit 12 (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk authored Feb 7, 2025
1 parent d447df8 commit 272c8fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"ext-simplexml": "*",
"fidry/cpu-core-counter": "^1.2.0",
"jean85/pretty-package-versions": "^2.1.0",
"phpunit/php-code-coverage": "^11.0.8",
"phpunit/php-file-iterator": "^5.1.0",
"phpunit/php-timer": "^7.0.1",
"phpunit/phpunit": "^11.5.7",
"sebastian/environment": "^7.2.0",
"symfony/console": "^6.4.14 || ^7.2.1",
"symfony/process": "^6.4.14 || ^7.2.0"
"phpunit/php-code-coverage": "^11.0.8 || ^12",
"phpunit/php-file-iterator": "^5.1.0 || ^6",
"phpunit/php-timer": "^7.0.1 || ^8",
"phpunit/phpunit": "^11.5.7 || ^12.0.1",
"sebastian/environment": "^7.2.0 || ^8",
"symfony/console": "^6.4.17 || ^7.2.1",
"symfony/process": "^6.4.15 || ^7.2.0"
},
"require-dev": {
"ext-pcov": "*",
Expand Down
2 changes: 0 additions & 2 deletions test/Unit/JUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace ParaTest\Tests\Unit;

use ParaTest\JUnit\LogMerger;
use ParaTest\JUnit\MessageType;
use ParaTest\JUnit\TestCase as JunitTestCase;
use ParaTest\JUnit\TestCaseWithMessage;
use ParaTest\JUnit\TestSuite;
Expand All @@ -22,7 +21,6 @@

/** @internal */
#[CoversClass(LogMerger::class)]
#[CoversClass(MessageType::class)]
#[CoversClass(JunitTestCase::class)]
#[CoversClass(TestCaseWithMessage::class)]
#[CoversClass(TestSuite::class)]
Expand Down
4 changes: 0 additions & 4 deletions test/Unit/WrapperRunner/WrapperRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RequiresOperatingSystemFamily;
use PHPUnit\Framework\Attributes\RequiresPhp;
use PHPUnit\Framework\Attributes\RequiresPhpunit;
use SebastianBergmann\CodeCoverage\CodeCoverage;
use Symfony\Component\Process\Process;
Expand Down Expand Up @@ -632,7 +631,6 @@ public function testGroupOptionWithDataProviderAndCodeCoverageEnabled(): void
* @see https://bugs.php.net/bug.php?id=77726
* @see https://github.com/php/php-src/pull/8114
*/
#[RequiresPhp('>=8.2')]
public function testFunctionalParallelization(): void
{
$this->bareOptions['path'] = $this->fixture('function_parallelization_tests');
Expand All @@ -654,7 +652,6 @@ public function testFunctionalParallelization(): void
self::assertSame(RunnerInterface::SUCCESS_EXIT, $runnerResult->exitCode);
}

#[RequiresPhp('>=8.2')]
public function testSameBeginningOfName(): void
{
$this->bareOptions['path'] = $this->fixture('same_beginning_of_name');
Expand All @@ -676,7 +673,6 @@ public function testSameBeginningOfName(): void
self::assertSame(RunnerInterface::SUCCESS_EXIT, $runnerResult->exitCode);
}

#[RequiresPhp('>=8.2')]
public function testFunctionalParallelizationWithJunitLogging(): void
{
$outputFile = $this->tmpDir . DIRECTORY_SEPARATOR . 'test-output.xml';
Expand Down

0 comments on commit 272c8fd

Please sign in to comment.