You are here

public static function Argument::withKey in Zircon Profile 8

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

Checks that argument array has key

Parameters

mixed $key exact value or token:

Return value

Token\ArrayEntryToken

File

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

Class

Argument
Argument tokens shortcuts.

Namespace

Prophecy

Code

public static function withKey($key) {
  return new Token\ArrayEntryToken($key, self::any());
}