Previous Page
assertNotRegex()

Solar_Test
assertNotSame()

Next Page
assertNotTrue()

assertNotSame()

public bool assertNotSame ( mixed $actual, mixed $expect )

Asserts that two variables are not the same type and value.

Parameters

  • (mixed) $actual: The variable to test.
  • (mixed) $expect: The non-expected result.

Returns

  • (bool) The assertion result.

Description

Asserts that two variables are not the same type and value.

When used on objects, asserts the two variables are not references to the same object.