You are here

function assertArrayHasKey in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert/Functions.php \assertArrayHasKey()

Asserts that an array has a specified key.

@since Method available since Release 3.0.0

Parameters

mixed $key:

array|ArrayAccess $array:

string $message:

File

vendor/phpunit/phpunit/src/Framework/Assert/Functions.php, line 63

Code

function assertArrayHasKey($key, $array, $message = '') {
  return call_user_func_array('PHPUnit_Framework_Assert::assertArrayHasKey', func_get_args());
}