示例#1
0
 public function testStandalone()
 {
     $email = new EmailValidator(new KeyValue("mail", "*****@*****.**"), "invalid email");
     $this->assertTrue($email->getValidationOutput()->isValid());
 }
示例#2
0
 /**
  * @expectedException \RuntimeException
  */
 public function testErrorPrinterWithLeafValidator()
 {
     $emailV = new EmailValidator(new KeyValue("email", "*****@*****.**"), "error");
     $out = $emailV->getValidationOutput();
     $pr = $out->getErrorPrinter();
 }