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