PHPUnit_Framework_Assert::assertAttributeGreaterThan PHP Method

assertAttributeGreaterThan() public static method

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

Usage Example

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