PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual PHP Method

assertAttributeLessThanOrEqual() public static method

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

Usage Example

Example #1
0
/**
 * Asserts that an attribute is smaller 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 assertAttributeLessThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message = '')
{
    return PHPUnit_Framework_Assert::assertAttributeLessThanOrEqual($expected, $actualAttributeName, $actualClassOrObject, $message);
}
PHPUnit_Framework_Assert