PHPUnit_Framework_Assert::assertAttributeNotInstanceOf PHP Method

assertAttributeNotInstanceOf() public static method

Asserts that an attribute is of a given type.
public static assertAttributeNotInstanceOf ( string $expected, string $attributeName, string | object $classOrObject, string $message = '' )
$expected string
$attributeName string
$classOrObject string | object
$message string
    public static function assertAttributeNotInstanceOf($expected, $attributeName, $classOrObject, $message = '')
    {
        static::assertNotInstanceOf($expected, static::readAttribute($classOrObject, $attributeName), $message);
    }

Usage Example

Esempio n. 1
0
/**
 * Asserts that an attribute is of a given type.
 *
 * @param string $expected
 * @param string $attributeName
 * @param mixed  $classOrObject
 * @param string $message
 * @since Method available since Release 3.5.0
 */
function assertAttributeNotInstanceOf($expected, $attributeName, $classOrObject, $message = '')
{
    return PHPUnit_Framework_Assert::assertAttributeNotInstanceOf($expected, $attributeName, $classOrObject, $message);
}
PHPUnit_Framework_Assert