Exemplo n.º 1
0
 public function testShouldValidateWhenPatternDoesNotMatch()
 {
     $pattern = '/^[0-9]{5}-[0-9]{3}$/';
     $filter = new Regex($pattern);
     $this->assertFalse($filter->isValid('ABCDE-FGH'));
 }