public function StringContainsToken::scoreArgument in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpspec/prophecy/src/Prophecy/Argument/Token/StringContainsToken.php \Prophecy\Argument\Token\StringContainsToken::scoreArgument()
Calculates token match score for provided argument.
Parameters
$argument:
Return value
bool|int
Overrides TokenInterface::scoreArgument
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ StringContainsToken.php, line 33
Class
- StringContainsToken
- String contains token.
Namespace
Prophecy\Argument\TokenCode
public function scoreArgument($argument) {
return strpos($argument, $this->value) !== false ? 6 : false;
}