Remove malformed EmailValidatorTest + Update UrlValidator test
Remove malformed EmailValidatorTest + Update UrlValidator test
This commit is contained in:
parent
6b0702e52a
commit
197d19f34c
@ -159,10 +159,4 @@ class EmailValidatorTest extends AbstractConstraintValidatorTest
|
|||||||
|
|
||||||
$this->assertNoViolation();
|
$this->assertNoViolation();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testEmptyHostReturnsFalse()
|
|
||||||
{
|
|
||||||
$this->assertFalse($this->validator->checkMX(''));
|
|
||||||
$this->assertFalse($this->validator->checkHost(''));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,7 @@ class UrlValidatorTest extends AbstractConstraintValidatorTest
|
|||||||
array('http://example.com/exploit.html?<script>alert(1);</script>'),
|
array('http://example.com/exploit.html?<script>alert(1);</script>'),
|
||||||
array('http://example.com/exploit.html?hel lo'),
|
array('http://example.com/exploit.html?hel lo'),
|
||||||
array('http://example.com/exploit.html?not_a%hex'),
|
array('http://example.com/exploit.html?not_a%hex'),
|
||||||
array('http:/.com'),
|
array('http://'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user