Only set PHPUnit_Framework_Error_Deprecated if it exists
Fix form name attribute not set for SF 2.3
Added invalid_message_parameters