function testRegexp()
 {
     $string = "abcedf";
     $this->assertTrue(ValidatorComponent::regexp($string, '/[a-z]/'));
     $string = "abcedf";
     $this->assertFalse(ValidatorComponent::regexp($string, '/[1-9]/'));
 }
Ejemplo n.º 2
0
 function testEmail()
 {
     $email = "t est@test.com";
     $email = FilterComponent::email($email);
     $this->assertTrue(ValidatorComponent::email($email));
 }