public function testIsCriticalError()
 {
     $ErrorMessages = getProperty('MailForm', 'ErrorMessages');
     $mailform = new MailForm();
     $this->assertFalse($mailform->isCriticalError());
     $mailform->setErrorMessage('key', MailForm::ERROR_CODE_NOT_NULL_PARAM, "title");
     $this->assertFalse($mailform->isCriticalError());
     $mailform->setErrorMessage(MailForm::BASE_ERROR_KEY, MailForm::ERROR_CODE_INVALID_FORM_CONFIG);
     $this->assertTrue($mailform->isCriticalError());
 }