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

Commit

Permalink
Fixed PHPUnit\Framework\MockObject\Invocation usage in Matcher/* classes
Browse files Browse the repository at this point in the history
  • Loading branch information
e-vyatkin authored and sebastianbergmann committed Dec 10, 2017
1 parent b2ad32a commit 283b9f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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

0 comments on commit 283b9f4

Please sign in to comment.