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
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public function refactor(Node $node): ?Node
[$functionName, $assetMethodName, $notAssertMethodName] = self::FUNCTION_NAME_WITH_ASSERT_METHOD_NAMES[$firstArgumentName];

$functionNameWithAssertMethods = new FunctionNameWithAssertMethods(
$functionName,
$assetMethodName,
$notAssertMethodName
);
Expand Down
5 changes: 0 additions & 5 deletions rules/CodeQuality/ValueObject/ArgAndFunctionLike.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,4 @@ public function getFunctionLike(): Closure|ArrowFunction
{
return $this->functionLike;
}

public function hasParams(): bool
{
return $this->functionLike->getParams() !== [];
}
}
3 changes: 3 additions & 0 deletions src/Enum/PHPUnitClassName.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ final class PHPUnitClassName
{
public const string TEST_CASE = 'PHPUnit\Framework\TestCase';

/**
* @api might be used in public
*/
public const string TEST_CASE_LEGACY = 'PHPUnit_Framework_TestCase';

public const string ASSERT = 'PHPUnit\Framework\Assert';
Expand Down
6 changes: 0 additions & 6 deletions src/ValueObject/FunctionNameWithAssertMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,11 @@
final readonly class FunctionNameWithAssertMethods
{
public function __construct(
private string $functionName,
private string $assetMethodName,
private string $notAssertMethodName
) {
}

public function getFunctionName(): string
{
return $this->functionName;
}

public function getAssetMethodName(): string
{
return $this->assetMethodName;
Expand Down