public function internalCheck($email, $checkText, $expectSuccess)
 {
     $field = new EmailField("MyEmail");
     $field->setValue($email);
     $val = new EmailFieldTest_Validator();
     try {
         $field->validate($val);
         // If we expect failure and processing gets here without an exception, the test failed
         $this->assertTrue($expectSuccess, $checkText . " (/{$email}/ passed validation, but not expected to)");
     } catch (Exception $e) {
         if ($e instanceof PHPUnit_Framework_AssertionFailedError) {
             throw $e;
         } else {
             if ($expectSuccess) {
                 $this->assertTrue(false, $checkText . ": " . $e->GetMessage() . " (/{$email}/ did not pass validation, but was expected to)");
             }
         }
     }
 }