You are here

public static function Argument::that in Zircon Profile 8.0

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

Checks that argument matches provided callback.

Parameters

callable $callback:

Return value

Token\CallbackToken

File

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

Class

Argument
Argument tokens shortcuts.

Namespace

Prophecy

Code

public static function that($callback) {
  return new Token\CallbackToken($callback);
}