Solar_Test::assertProperty()

public bool Solar_Test::assertProperty ( object $object , string $property , string $test , mixed $expect = 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.



Local