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