Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Argument.php

function 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 125

Class

Argument
Argument tokens shortcuts.

Namespace

Prophecy

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal