Previous Page
assertNull()

Solar_Test
assertProperty()

Next Page
assertRegex()

assertProperty()

public bool assertProperty ( object $object, string $property, string $test, mixed $expect default NULL )

Asserts that an object property meets criteria.

Parameters

  • (object) $object: The object to test.
  • (string) $property: The property to inspect.
  • (string) $test: The Solar_Test_Assert method to call.
  • (mixed) $expect: The expected result from the test method.

Returns

  • (bool) The assertion result.

Description

Asserts that an object property meets criteria.

The object property may be public, protected, or private.