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
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"rector/rector-downgrade-php": "dev-main",
"rector/rector-phpunit": "dev-main",
"rector/rector-symfony": "dev-main",
"sebastian/diff": "^6.0|^7.0",
"sebastian/diff": "^9.0",
"symfony/console": "^6.4.24",
"symfony/filesystem": "^7.4",
"symfony/finder": "^6.4",
Expand All @@ -48,9 +48,8 @@
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpunit/phpunit": "^12.5.6",
"rector/jack": "^0.5",
"rector/release-notes-generator": "^0.5.1",
"phpunit/phpunit": "^13.0",
"rector/jack": "^1.0",
"rector/swiss-knife": "^2.4.1",
"shipmonk/composer-dependency-analyser": "^1.8",
"symplify/easy-coding-standard": "^13.2.13",
Expand Down
6 changes: 3 additions & 3 deletions tests/Configuration/OnlyRuleResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function testResolveOkSingleQuotes(): void

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

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

public function testResolveShortAmbiguous(): void
{
$this->expectExceptionMessage(
$this->expectExceptionMessageIsOrContains(
'Short rule name "RemoveDoubleAssignRector" is ambiguous. Specify the full rule name:' . PHP_EOL
. '- Rector\\DeadCode\\Rector\\Assign\\RemoveDoubleAssignRector' . PHP_EOL
. '- Rector\\Tests\\Configuration\\Source\\RemoveDoubleAssignRector'
Expand Down
2 changes: 1 addition & 1 deletion tests/Issues/ReturnEmptyNodes/ReturnEmptyNodesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class ReturnEmptyNodesTest extends AbstractRectorTestCase
#[DataProvider('provideData')]
public function test(string $filePath): void
{
$this->expectExceptionMessage('Array of nodes cannot be empty');
$this->expectExceptionMessageIsOrContains('Array of nodes cannot be empty');
$this->expectException(ShouldNotHappenException::class);

$this->doTestFile($filePath);
Expand Down
Loading