Previous Page
assertFalse()

Solar_Test
assertInstance()

Next Page
assertNotEquals()

assertInstance()

public bool assertInstance ( object $actual, string $expect )

Asserts that a object is an instance of a class.

Parameters

  • (object) $actual: The object to test.
  • (string) $expect: The expected class name.

Returns

  • (bool) The assertion result.

Description

Asserts that a object is an instance of a class.