Previous Page
assertRegex()

Solar_Test
assertSame()

Next Page
assertTrue()

assertSame()

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

Asserts that two variables have the same type and value.

Parameters

  • (mixed) $actual: The variable to test.
  • (mixed) $expect: The expected value.

Returns

  • (bool) The assertion result.

Description

Asserts that two variables have the same type and value.

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