PHPUnit_Framework_Assert::objectHasAttribute

Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.