public static function PHPUnit_Framework_Assert::assertNotNull

Asserts that a variable is not NULL.

Parameters

mixed $actual:

string $message:

1 call to PHPUnit_Framework_Assert::assertNotNull()
Framework_AssertTest::testAssertNotNull in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertNotNull

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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