PHPUnit_Framework_Assert::assertAttributeEquals

Asserts that a variable is equal to an attribute of an object.