public static function PHPUnit_Framework_Assert::assertNotEmpty

Asserts that a variable is not empty.

Parameters

mixed $actual:

string $message:

Throws

PHPUnit_Framework_AssertionFailedError

2 calls to PHPUnit_Framework_Assert::assertNotEmpty()
Framework_AssertTest::testAssertNotEmpty in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertNotEmpty
PHPUnit_Framework_Assert::assertAttributeNotEmpty 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 not empty.

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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