function assertTrue

Asserts that a condition is true.

Parameters

boolean $condition:

string $message:

Throws

PHPUnit_Framework_AssertionFailedError

1 string reference to 'assertTrue'
CustomBooleanTest::testCustomOption in drupal/core/modules/views_ui/lib/Drupal/views_ui/Tests/CustomBooleanTest.php
Tests the setting and output of custom labels for boolean values.

File

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

Code

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