3 * This file is part of PHPUnit.
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
12 * Constraint that accepts false.
14 * @since Class available since Release 3.3.0
16 class PHPUnit_Framework_Constraint_IsFalse extends PHPUnit_Framework_Constraint
19 * Evaluates the constraint for parameter $other. Returns true if the
20 * constraint is met, false otherwise.
22 * @param mixed $other Value or object to evaluate.
26 protected function matches($other)
28 return $other === false;
32 * Returns a string representation of the constraint.
36 public function toString()