You are here

public static function PHPUnit_Framework_Assert::assertNotEmpty in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \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 vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertNotEmpty
PHPUnit_Framework_Assert::assertAttributeNotEmpty in vendor/phpunit/phpunit/src/Framework/Assert.php
Asserts that a static attribute of a class or an attribute of an object is not empty.

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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