You are here

public function IdenticalValueToken::scoreArgument in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument/Token/IdenticalValueToken.php \Prophecy\Argument\Token\IdenticalValueToken::scoreArgument()

Scores 11 if argument matches preset value.

Parameters

$argument:

Return value

bool|int

Overrides TokenInterface::scoreArgument

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/IdenticalValueToken.php, line 46

Class

IdenticalValueToken
Identical value token.

Namespace

Prophecy\Argument\Token

Code

public function scoreArgument($argument) {
  return $argument === $this->value ? 11 : false;
}