Previous Page
assertNotFalse()

Solar_Test
assertNotInstance()

Next Page
assertNotNull()

assertNotInstance()

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

Asserts that a object is not an instance of a class.

Parameters

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

Returns

  • (bool) The assertion result.

Description

Asserts that a object is not an instance of a class.