PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual PHP Method

assertAttributeGreaterThanOrEqual() public static method

Asserts that an attribute is greater than or equal to another value.
public static assertAttributeGreaterThanOrEqual ( mixed $expected, string $actualAttributeName, string | object $actualClassOrObject, string $message = '' )
$expected mixed
$actualAttributeName string
$actualClassOrObject string | object
$message string
    public static function assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')
    {
        static::assertGreaterThanOrEqual($expected, static::readAttribute($actualClassOrObject, $actualAttributeName), $message);
    }

Usage Example

Example #1
0
/**
 * Asserts that an attribute is greater than or equal to another value.
 *
 * @param  mixed   $expected
 * @param  string  $actualAttributeName
 * @param  string  $actualClassOrObject
 * @param  string  $message
 * @since  Method available since Release 3.1.0
 */
function assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')
{
    return PHPUnit_Framework_Assert::assertAttributeGreaterThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message);
}
PHPUnit_Framework_Assert