Asserts that a variable is empty.
public static assertEmpty ( mixed $actual, string $message = '' ) | ||
$actual | mixed | |
$message | string |
$string = ''; $this->assertEmpty($string);
$array = array(); $this->assertEmpty($array);
$nullValue = null; $this->assertEmpty($nullValue);The PHPUnit_Framework_Assert class is part of the PHPUnit testing framework package which is used for unit testing in PHP.
public static assertEmpty ( mixed $actual, string $message = '' ) | ||
$actual | mixed | |
$message | string |