PHPUnit_Framework_Assert::assertObjectHasAttribute

Asserts that an object has a specified attribute.