Solar_Test::assertSame()

public bool Solar_Test::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.



Local