Skip to content

Commit bb342e2

Browse files
[PHPUnit 13] Fix class in expectExceptionMessage() rename to TestCase (#735)
Co-authored-by: GitHub Action <actions@github.com>
1 parent 93744ac commit bb342e2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎config/sets/phpunit130.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
return static function (RectorConfig $rectorConfig): void {
1010
$rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [
1111
// @see https://github.com/sebastianbergmann/phpunit/issues/6560
12-
new MethodCallRename('PHPUnit\Framework\TestClass', 'expectExceptionMessage', 'expectExceptionMessageIsOrContains'),
12+
new MethodCallRename('PHPUnit\Framework\TestCase', 'expectExceptionMessage', 'expectExceptionMessageIsOrContains'),
1313
]);
1414
};

‎rules/CodeQuality/Rector/MethodCall/AssertComparisonToSpecificMethodRector.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class AssertComparisonToSpecificMethodRector extends AbstractRector
3535
/**
3636
* @var BinaryOpWithAssertMethod[]
3737
*/
38-
private array $binaryOpWithAssertMethods = [];
38+
private readonly array $binaryOpWithAssertMethods;
3939

4040
public function __construct(
4141
private readonly IdentifierManipulator $identifierManipulator,

‎rules/CodeQuality/Rector/MethodCall/AssertSameBoolNullToSpecificMethodRector.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class AssertSameBoolNullToSpecificMethodRector extends AbstractRector
2424
/**
2525
* @var ConstantWithAssertMethods[]
2626
*/
27-
private array $constantWithAssertMethods = [];
27+
private readonly array $constantWithAssertMethods;
2828

2929
public function __construct(
3030
private readonly IdentifierManipulator $identifierManipulator,

0 commit comments

Comments
 (0)