public static function PHPUnit_Framework_Assert::fail

Fails a test with the given message.

Parameters

string $message:

Throws

PHPUnit_Framework_AssertionFailedError

238 calls to PHPUnit_Framework_Assert::fail()
BankAccountTest::testBalanceCannotBecomeNegative in drupal/core/vendor/phpunit/php-code-coverage/Tests/_files/BankAccountTest.php
@covers BankAccount::withdrawMoney
BankAccountTest::testBalanceCannotBecomeNegative in drupal/core/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.php
@covers BankAccount::withdrawMoney @group balanceCannotBecomeNegative @group specification
BankAccountTest::testBalanceCannotBecomeNegative2 in drupal/core/vendor/phpunit/php-code-coverage/Tests/_files/BankAccountTest.php
@covers BankAccount::depositMoney
BankAccountTest::testBalanceCannotBecomeNegative2 in drupal/core/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.php
@covers BankAccount::depositMoney @group balanceCannotBecomeNegative @group specification
BankAccountWithCustomExtensionTest::testBalanceCannotBecomeNegative in drupal/core/vendor/phpunit/phpunit/Tests/_files/BankAccountTest.test.php
@covers BankAccount::withdrawMoney @group balanceCannotBecomeNegative @group specification

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function fail($message = '') {
  throw new PHPUnit_Framework_AssertionFailedError($message);
}