Asserts that two variables do not have the same type and value. Used on objects, it asserts that two variables do not reference the same object.
mixed $expected:
mixed $actual:
string $message:
public static function assertNotSame($expected, $actual, $message = '') {
if (is_bool($expected) && is_bool($actual)) {
self::assertNotEquals($expected, $actual, $message);
}
else {
$constraint = new PHPUnit_Framework_Constraint_Not(new PHPUnit_Framework_Constraint_IsIdentical($expected));
self::assertThat($actual, $constraint, $message);
}
}