You are here

public static function Argument::which in Zircon Profile 8

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

Checks that argument object has specific state.

Parameters

string $methodName:

mixed $value:

Return value

Token\ObjectStateToken

File

vendor/phpspec/prophecy/src/Prophecy/Argument.php, line 55

Class

Argument
Argument tokens shortcuts.

Namespace

Prophecy

Code

public static function which($methodName, $value) {
  return new Token\ObjectStateToken($methodName, $value);
}