You are here

public static function PHPUnit_Framework_Assert::equalTo in Zircon Profile 8

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

Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.

@since Method available since Release 3.0.0

Parameters

mixed $value:

float $delta:

int $maxDepth:

bool $canonicalize:

bool $ignoreCase:

Return value

PHPUnit_Framework_Constraint_IsEqual

10 calls to PHPUnit_Framework_Assert::equalTo()
Framework_AssertTest::testAssertThatAttributeEquals in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::attribute @covers PHPUnit_Framework_Assert::equalTo
Framework_AssertTest::testAssertThatAttributeEquals2 in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::attribute @covers PHPUnit_Framework_Assert::equalTo @expectedException PHPUnit_Framework_AssertionFailedError
Framework_AssertTest::testAssertThatEqualTo in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::equalTo
Framework_ConstraintTest::testConstraintIsEqual in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsEqual @covers PHPUnit_Framework_Assert::equalTo @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintIsEqual2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@dataProvider isEqualProvider @covers PHPUnit_Framework_Constraint_IsEqual @covers PHPUnit_Framework_Assert::equalTo @covers PHPUnit_Framework_TestFailure::exceptionToString

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function equalTo($value, $delta = 0.0, $maxDepth = 10, $canonicalize = false, $ignoreCase = false) {
  return new PHPUnit_Framework_Constraint_IsEqual($value, $delta, $maxDepth, $canonicalize, $ignoreCase);
}