Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ee79ecc

Browse filesBrowse files
authored
[PHPUnit 13] Add PHPUnit 13 config set (#733)
1 parent 715bafe commit ee79ecc
Copy full SHA for ee79ecc

3 files changed

+23Lines changed: 23 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎config/sets/phpunit130.php‎

Copy file name to clipboard
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
7+
use Rector\Renaming\ValueObject\MethodCallRename;
8+
9+
return static function (RectorConfig $rectorConfig): void {
10+
$rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [
11+
// @see https://github.com/sebastianbergmann/phpunit/issues/6560
12+
new MethodCallRename('PHPUnit\Framework\TestClass', 'expectExceptionMessage', 'expectExceptionMessageIsOrContains'),
13+
]);
14+
};
Collapse file

‎src/Set/PHPUnitSetList.php‎

Copy file name to clipboardExpand all lines: src/Set/PHPUnitSetList.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ final class PHPUnitSetList
2727

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

30+
public const string PHPUNIT_130 = __DIR__ . '/../../config/sets/phpunit130.php';
31+
3032
public const string PHPUNIT_MOCK_TO_STUB = __DIR__ . '/../../config/sets/phpunit-mock-to-stub.php';
3133

3234
public const string PHPUNIT_CODE_QUALITY = __DIR__ . '/../../config/sets/phpunit-code-quality.php';
Collapse file

‎src/Set/SetProvider/PHPUnitSetProvider.php‎

Copy file name to clipboardExpand all lines: src/Set/SetProvider/PHPUnitSetProvider.php
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ public function provide(): array
8282
__DIR__ . '/../../../config/sets/phpunit125.php'
8383
),
8484

85+
new ComposerTriggeredSet(
86+
SetGroup::PHPUNIT,
87+
'phpunit/phpunit',
88+
'13.0',
89+
__DIR__ . '/../../../config/sets/phpunit130.php'
90+
),
91+
8592
new Set(SetGroup::PHPUNIT, 'Code Quality', __DIR__ . '/../../../config/sets/phpunit-code-quality.php'),
8693

8794
new Set(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.