isEmpty() public static method

Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
public static isEmpty ( ) : PHPUnit_Framework_Constraint_IsEmpty
return PHPUnit_Framework_Constraint_IsEmpty
 public function __construct($name, $constraint = null)
 {
     parent::__construct();
     if ($constraint === null) {
         $constraint = Assert::logicalNot(Assert::isEmpty());
     } elseif (!$constraint instanceof Constraint) {
         $constraint = Assert::equalTo($constraint);
     }
     $this->name = strtolower($name);
     $this->constraint = $constraint;
 }
Esempio n. 2
0
/**
 * Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
 *
 * @return PHPUnit_Framework_Constraint_IsEmpty
 * @since  Method available since Release 3.5.0
 */
function isEmpty()
{
    return PHPUnit_Framework_Assert::isEmpty();
}