You are here

public function PHPUnit_Framework_Constraint_Not::__construct in Zircon Profile 8.0

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

Parameters

PHPUnit_Framework_Constraint $constraint:

Overrides PHPUnit_Framework_Constraint::__construct

File

vendor/phpunit/phpunit/src/Framework/Constraint/Not.php, line 26

Class

PHPUnit_Framework_Constraint_Not
Logical NOT.

Code

public function __construct($constraint) {
  parent::__construct();
  if (!$constraint instanceof PHPUnit_Framework_Constraint) {
    $constraint = new PHPUnit_Framework_Constraint_IsEqual($constraint);
  }
  $this->constraint = $constraint;
}