public static function PHPUnit_Framework_Assert::assertTrue

Asserts that a condition is true.

Parameters

boolean $condition:

string $message:

Throws

PHPUnit_Framework_AssertionFailedError

99 calls to PHPUnit_Framework_Assert::assertTrue()
ChangeCurrentWorkingDirectoryTest::testSomethingThatChangesTheCwd in drupal/core/vendor/phpunit/phpunit/Tests/_files/ChangeCurrentWorkingDirectoryTest.php
Framework_AssertTest::testAssertTrue in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertTrue
Framework_ConstraintTest::testAttributeEqualTo in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Assert::attributeEqualTo @covers PHPUnit_Framework_Constraint_Attribute @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testAttributeNotEqualTo in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Assert::attributeEqualTo @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_Constraint_Attribute @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintArrayContains in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_TraversableContains @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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