You are here

public static function PHPUnit_Framework_Assert::assertEquals in Zircon Profile 8

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

Asserts that two variables are equal.

Parameters

mixed $expected:

mixed $actual:

string $message:

float $delta:

int $maxDepth:

bool $canonicalize:

bool $ignoreCase:

481 calls to PHPUnit_Framework_Assert::assertEquals()
AutoloaderTest::testResolveFile in vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/AutoloaderTest.php
@dataProvider dataResolveFile
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

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertEquals($expected, $actual, $message = '', $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false) {
  $constraint = new PHPUnit_Framework_Constraint_IsEqual($expected, $delta, $maxDepth, $canonicalize, $ignoreCase);
  self::assertThat($actual, $constraint, $message);
}