You are here

public static function PHPUnit_Framework_Assert::assertNull in Zircon Profile 8

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

Asserts that a variable is null.

Parameters

mixed $actual:

string $message:

19 calls to PHPUnit_Framework_Assert::assertNull()
Framework_AssertTest::testAssertNull in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertNull
Framework_ConstraintTest::testConstraintIsAnything in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsAnything @covers PHPUnit_Framework_Assert::anything @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_MockBuilderTest::testByDefaultMocksAllMethods in vendor/phpunit/phpunit-mock-objects/tests/MockBuilderTest.php
Framework_MockBuilderTest::testMethodsToMockCanBeSpecified in vendor/phpunit/phpunit-mock-objects/tests/MockBuilderTest.php
Framework_MockBuilderTest::testOriginalConstructorCanBeDisabled in vendor/phpunit/phpunit-mock-objects/tests/MockBuilderTest.php

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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