PHPUnit_Framework_Assert::isEmpty PHP Method

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 static function isEmpty()
    {
        return new PHPUnit_Framework_Constraint_IsEmpty();
    }

Usage Example

 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;
 }
All Usage Examples Of PHPUnit_Framework_Assert::isEmpty
PHPUnit_Framework_Assert