You are here

function assertTrue in Zircon Profile 8

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

Asserts that a condition is true.

Parameters

bool $condition:

string $message:

Throws

PHPUnit_Framework_AssertionFailedError

3 string references to 'assertTrue'
CustomBooleanTest::testCustomOption in core/modules/views_ui/src/Tests/CustomBooleanTest.php
Tests the setting and output of custom labels for boolean values.
CustomBooleanTest::testCustomOptionTemplate in core/modules/views_ui/src/Tests/CustomBooleanTest.php
Tests the setting and output of custom labels for boolean values.
TestBaseTest::testAssertTrue in core/modules/simpletest/tests/src/Unit/TestBaseTest.php
@covers ::assertTrue @dataProvider providerAssertTrue

File

vendor/phpunit/phpunit/src/Framework/Assert/Functions.php, line 1657

Code

function assertTrue($condition, $message = '') {
  return call_user_func_array('PHPUnit_Framework_Assert::assertTrue', func_get_args());
}