Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions config/sets/phpunit130.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\ValueObject\MethodCallRename;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [
// @see https://github.com/sebastianbergmann/phpunit/issues/6560
new MethodCallRename('PHPUnit\Framework\TestClass', 'expectExceptionMessage', 'expectExceptionMessageIsOrContains'),
]);
};
2 changes: 2 additions & 0 deletions src/Set/PHPUnitSetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ final class PHPUnitSetList

public const string PHPUNIT_120 = __DIR__ . '/../../config/sets/phpunit120.php';

public const string PHPUNIT_130 = __DIR__ . '/../../config/sets/phpunit130.php';

public const string PHPUNIT_MOCK_TO_STUB = __DIR__ . '/../../config/sets/phpunit-mock-to-stub.php';

public const string PHPUNIT_CODE_QUALITY = __DIR__ . '/../../config/sets/phpunit-code-quality.php';
Expand Down
7 changes: 7 additions & 0 deletions src/Set/SetProvider/PHPUnitSetProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ public function provide(): array
__DIR__ . '/../../../config/sets/phpunit125.php'
),

new ComposerTriggeredSet(
SetGroup::PHPUNIT,
'phpunit/phpunit',
'13.0',
__DIR__ . '/../../../config/sets/phpunit130.php'
),

new Set(SetGroup::PHPUNIT, 'Code Quality', __DIR__ . '/../../../config/sets/phpunit-code-quality.php'),

new Set(
Expand Down
Loading