public static function 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:

integer $maxDepth:

boolean $canonicalize:

boolean $ignoreCase:

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

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertNotEquals($expected, $actual, $message = '', $delta = 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);
}