public function PHPUnit_Framework_Constraint_ArraySubset::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php \PHPUnit_Framework_Constraint_ArraySubset::__construct()
Parameters
array|ArrayAccess $subset:
bool $strict Check for object identity:
Overrides PHPUnit_Framework_Constraint::__construct
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Constraint/ ArraySubset.php, line 35
Class
- PHPUnit_Framework_Constraint_ArraySubset
- Constraint that asserts that the array it is evaluated for has a specified subset.
Code
public function __construct($subset, $strict = false) {
parent::__construct();
$this->strict = $strict;
$this->subset = $subset;
}