public static function PHPUnit_Framework_Assert::assertEmpty

Asserts that a variable is empty.

Parameters

mixed $actual:

string $message:

Throws

PHPUnit_Framework_AssertionFailedError

2 calls to PHPUnit_Framework_Assert::assertEmpty()
Framework_AssertTest::testAssertEmpty in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertEmpty
PHPUnit_Framework_Assert::assertAttributeEmpty in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php
Asserts that a static attribute of a class or an attribute of an object is empty.

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php, line 558

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertEmpty($actual, $message = '') {
  self::assertThat($actual, self::isEmpty(), $message);
}