Test that if a dynamic variable is defined on a class then the $attribute variable will be NULL, but the variable defined will be a public one so we are safe to return it
Currently $attribute is NULL but we try and call isPublic() on it. This breaks for php 5.2.10
@covers PHPUnit_Util_Class::getObjectAttribute
void
public function testGetObjectAttributeCanHandleDynamicVariables() {
$attributeName = '_variable';
$object = new stdClass();
$object->{$attributeName} = 'Test';
$actual = PHPUnit_Util_Class::getObjectAttribute($object, $attributeName);
$this
->assertEquals('Test', $actual);
}