Tester\Assert::notEqual PHP Méthode

notEqual() public static méthode

Checks assertion. The identity of objects and the order of keys in the arrays are ignored.
public static notEqual ( $expected, $actual, $description = NULL ) : void
Résultat void
    public static function notEqual($expected, $actual, $description = NULL)
    {
        self::$counter++;
        if (self::isEqual($expected, $actual)) {
            self::fail(self::describe('%1 should not be equal to %2', $description), $actual, $expected);
        }
    }

Usage Example

Exemple #1
0
 public static function isNot($expected)
 {
     return static::match(function ($arg) use($expected) {
         Assert::notEqual($expected, $arg);
     });
 }