Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Fixed PHPUnit\Framework\MockObject\Invocation usage in Matcher/* classes #391

Merged
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Matcher/AnyParameters.php
Expand Up @@ -9,7 +9,7 @@
*/
namespace PHPUnit\Framework\MockObject\Matcher;

use PHPUnit\Framework\MockObject\Invocation;
use PHPUnit\Framework\MockObject\Invocation as BaseInvocation;

/**
* Invocation matcher which allows any parameters to a method.
Expand All @@ -25,11 +25,11 @@ public function toString()
}

/**
* @param Invocation $invocation
* @param BaseInvocation $invocation
*
* @return bool
*/
public function matches(Invocation $invocation)
public function matches(BaseInvocation $invocation)
{
return true;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Matcher/InvokedCount.php
Expand Up @@ -10,7 +10,7 @@
namespace PHPUnit\Framework\MockObject\Matcher;

use PHPUnit\Framework\ExpectationFailedException;
use PHPUnit\Framework\MockObject\Invocation;
use PHPUnit\Framework\MockObject\Invocation as BaseInvocation;

/**
* Invocation matcher which checks if a method has been invoked a certain amount
Expand Down Expand Up @@ -52,11 +52,11 @@ public function toString()
}

/**
* @param Invocation $invocation
* @param BaseInvocation $invocation
*
* @throws ExpectationFailedException
*/
public function invoked(Invocation $invocation)
public function invoked(BaseInvocation $invocation)
{
parent::invoked($invocation);

Expand Down
6 changes: 3 additions & 3 deletions src/Matcher/MethodName.php
Expand Up @@ -11,7 +11,7 @@

use PHPUnit\Framework\Constraint\Constraint;
use PHPUnit\Framework\Constraint\IsEqual;
use PHPUnit\Framework\MockObject\Invocation;
use PHPUnit\Framework\MockObject\Invocation as BaseInvocation;
use PHPUnit\Util\InvalidArgumentHelper;

/**
Expand Down Expand Up @@ -62,11 +62,11 @@ public function toString()
}

/**
* @param Invocation $invocation
* @param BaseInvocation $invocation
*
* @return bool
*/
public function matches(Invocation $invocation)
public function matches(BaseInvocation $invocation)
{
return $this->constraint->evaluate($invocation->getMethodName(), '', true);
}
Expand Down