Skip to content

Commit

Permalink
test: Add static methods from PHPUnit 9.6.11 (#7243)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirone committed Aug 19, 2023
1 parent aa0b9ca commit 71b76ba
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/Fixer/PhpUnit/PhpUnitTestCaseStaticMethodCallsFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,6 @@ final class PhpUnitTestCaseStaticMethodCallsFixer extends AbstractPhpUnitFixer i
*/
public const CALL_TYPE_STATIC = 'static';

/**
* @var array<string,bool>
*/
private array $allowedValues = [
self::CALL_TYPE_THIS => true,
self::CALL_TYPE_SELF => true,
self::CALL_TYPE_STATIC => true,
];

/**
* @var array<string,true>
*/
Expand Down Expand Up @@ -197,7 +188,9 @@ final class PhpUnitTestCaseStaticMethodCallsFixer extends AbstractPhpUnitFixer i
'assertNull' => true,
'assertObjectEquals' => true,
'assertObjectHasAttribute' => true,
'assertObjectHasProperty' => true,
'assertObjectNotHasAttribute' => true,
'assertObjectNotHasProperty' => true,
'assertRegExp' => true,
'assertSame' => true,
'assertSameSize' => true,
Expand Down Expand Up @@ -301,6 +294,15 @@ final class PhpUnitTestCaseStaticMethodCallsFixer extends AbstractPhpUnitFixer i
'throwException' => true,
];

/**
* @var array<string,bool>
*/
private array $allowedValues = [
self::CALL_TYPE_THIS => true,
self::CALL_TYPE_SELF => true,
self::CALL_TYPE_STATIC => true,
];

/**
* @var array<string, list<list<int|string>>>
*/
Expand Down

0 comments on commit 71b76ba

Please sign in to comment.