You are here

public static function Argument::withEntry in Zircon Profile 8.0

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

Checks that argument array contains (key, value) pair

Parameters

mixed $key exact value or token:

mixed $value exact value or token:

Return value

Token\ArrayEntryToken

File

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

Class

Argument
Argument tokens shortcuts.

Namespace

Prophecy

Code

public static function withEntry($key, $value) {
  return new Token\ArrayEntryToken($key, $value);
}