function arrayHasKey

Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.

@since Method available since Release 3.0.0

Parameters

mixed $key:

Return value

PHPUnit_Framework_Constraint_ArrayHasKey

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert/Functions.php, line 82

Code

function arrayHasKey($key) {
  return call_user_func_array('PHPUnit_Framework_Assert::arrayHasKey', func_get_args());
}