You are here

public static function PHPUnit_Framework_Assert::assertEmpty in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::assertEmpty()

Asserts that a variable is empty.

Parameters

mixed $actual:

string $message:

Throws

PHPUnit_Framework_AssertionFailedError

4 calls to PHPUnit_Framework_Assert::assertEmpty()
Framework_AssertTest::testAssertEmpty in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertEmpty
PHPUnit_Framework_Assert::assertAttributeEmpty in vendor/phpunit/phpunit/src/Framework/Assert.php
Asserts that a static attribute of a class or an attribute of an object is empty.
PHP_Token_ClassTest::testAnonymousClassesAreHandledCorrectly2 in vendor/phpunit/php-token-stream/tests/Token/ClassTest.php
@requires PHP 7 @ticket https://github.com/sebastianbergmann/php-token-stream/issues/52
Util_ConfigurationTest::testWithEmptyConfigurations in vendor/phpunit/phpunit/tests/Util/ConfigurationTest.php
@ticket 1311 @covers PHPUnit_Util_Configuration::getLoggingConfiguration @covers PHPUnit_Util_Configuration::getPHPConfiguration @covers PHPUnit_Util_Configuration::getPHPUnitConfiguration @covers…

File

vendor/phpunit/phpunit/src/Framework/Assert.php, line 587

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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