You are here

public static function PHPUnit_Framework_Assert::assertNotNull in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \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 vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertNotNull

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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