PHPUnit_Framework_Assert::assertAttributeSame

Asserts that a variable and an attribute of an object have the same type and value.