You are here

public static function PHPUnit_Framework_Assert::assertTrue in Zircon Profile 8

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

Asserts that a condition is true.

Parameters

bool $condition:

string $message:

Throws

PHPUnit_Framework_AssertionFailedError

160 calls to PHPUnit_Framework_Assert::assertTrue()
AutoloaderTest::testAutoload in vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/AutoloaderTest.php
BlacklistTest::testClassCanBeBlacklisted in vendor/sebastian/global-state/tests/BlacklistTest.php
BlacklistTest::testClassNamePrefixesCanBeBlacklisted in vendor/sebastian/global-state/tests/BlacklistTest.php
BlacklistTest::testGlobalVariableCanBeBlacklisted in vendor/sebastian/global-state/tests/BlacklistTest.php
BlacklistTest::testImplementorsCanBeBlacklisted in vendor/sebastian/global-state/tests/BlacklistTest.php

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertTrue($condition, $message = '') {
  self::assertThat($condition, self::isTrue(), $message);
}