Skip to content

Commit 04b18f6

Browse files
Bump to PHPUnit 13, diff 9 (#8220)
Co-authored-by: GitHub Action <actions@github.com>
1 parent f6d7133 commit 04b18f6

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

‎composer.json‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"rector/rector-downgrade-php": "dev-main",
3333
"rector/rector-phpunit": "dev-main",
3434
"rector/rector-symfony": "dev-main",
35-
"sebastian/diff": "^6.0|^7.0",
35+
"sebastian/diff": "^9.0",
3636
"symfony/console": "^6.4.24",
3737
"symfony/filesystem": "^7.4",
3838
"symfony/finder": "^6.4",
@@ -48,9 +48,8 @@
4848
"phpstan/phpstan-deprecation-rules": "^2.0",
4949
"phpstan/phpstan-phpunit": "^2.0",
5050
"phpstan/phpstan-webmozart-assert": "^2.0",
51-
"phpunit/phpunit": "^12.5.6",
52-
"rector/jack": "^0.5",
53-
"rector/release-notes-generator": "^0.5.1",
51+
"phpunit/phpunit": "^13.0",
52+
"rector/jack": "^1.0",
5453
"rector/swiss-knife": "^2.4.1",
5554
"shipmonk/composer-dependency-analyser": "^1.8",
5655
"symplify/easy-coding-standard": "^13.2.13",

‎tests/Configuration/OnlyRuleResolverTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testResolveOkSingleQuotes(): void
6464

6565
public function testResolveMissingBackslash(): void
6666
{
67-
$this->expectExceptionMessage(
67+
$this->expectExceptionMessageIsOrContains(
6868
'Rule "RectorDeadCodeRectorAssignRemoveDoubleAssignRector" was not found.' . PHP_EOL
6969
. 'The rule has no namespace. Make sure to escape the backslashes, and add quotes around the rule name: --only="My\\Rector\\Rule"'
7070
);
@@ -75,7 +75,7 @@ public function testResolveMissingBackslash(): void
7575

7676
public function testResolveNotFound(): void
7777
{
78-
$this->expectExceptionMessage(
78+
$this->expectExceptionMessageIsOrContains(
7979
'Rule "This\Rule\Does\Not\Exist" was not found.' . PHP_EOL
8080
. 'Make sure it is registered in your config or in one of the sets'
8181
);
@@ -102,7 +102,7 @@ public function testResolveShortOkTwoLevels(): void
102102

103103
public function testResolveShortAmbiguous(): void
104104
{
105-
$this->expectExceptionMessage(
105+
$this->expectExceptionMessageIsOrContains(
106106
'Short rule name "RemoveDoubleAssignRector" is ambiguous. Specify the full rule name:' . PHP_EOL
107107
. '- Rector\\DeadCode\\Rector\\Assign\\RemoveDoubleAssignRector' . PHP_EOL
108108
. '- Rector\\Tests\\Configuration\\Source\\RemoveDoubleAssignRector'

‎tests/Issues/ReturnEmptyNodes/ReturnEmptyNodesTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class ReturnEmptyNodesTest extends AbstractRectorTestCase
1414
#[DataProvider('provideData')]
1515
public function test(string $filePath): void
1616
{
17-
$this->expectExceptionMessage('Array of nodes cannot be empty');
17+
$this->expectExceptionMessageIsOrContains('Array of nodes cannot be empty');
1818
$this->expectException(ShouldNotHappenException::class);
1919

2020
$this->doTestFile($filePath);

0 commit comments

Comments
 (0)