You are here

public static function PHPUnit_Framework_Assert::assertNotEquals in Zircon Profile 8

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

Asserts that two variables are not equal.

@since Method available since Release 2.3.0

Parameters

mixed $expected:

mixed $actual:

string $message:

float $delta:

int $maxDepth:

bool $canonicalize:

bool $ignoreCase:

18 calls to PHPUnit_Framework_Assert::assertNotEquals()
Framework_AssertTest::testAssertNotEqualsFails in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertNotEquals @dataProvider equalProvider
Framework_AssertTest::testAssertNotEqualsSucceeds in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertNotEquals @dataProvider notEqualProvider
Framework_AssertTest::testAssertStringEqualsNumeric2 in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertNotEquals
Framework_MockObjectTest::testArgumentCloningOptionGeneratesUniqueMock in vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php
Framework_MockObjectTest::testMockClassDifferentForPartialMocks in vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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