You are here

public function PHPUnit_Framework_Constraint_ArrayHasKey::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php \PHPUnit_Framework_Constraint_ArrayHasKey::__construct()

Parameters

int|string $key:

Overrides PHPUnit_Framework_Constraint::__construct

File

vendor/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php, line 31

Class

PHPUnit_Framework_Constraint_ArrayHasKey
Constraint that asserts that the array it is evaluated for has a given key.

Code

public function __construct($key) {
  parent::__construct();
  $this->key = $key;
}