You are here

public static function PHPUnit_Framework_Assert::fail in Zircon Profile 8

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

Fails a test with the given message.

Parameters

string $message:

Throws

PHPUnit_Framework_AssertionFailedError

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

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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