/** * Tests static method call routing to enable patterns defined in Validator::$_rules to be * called as methods. * * @return void */ public function testCustomMethodDispatching() { $this->assertTrue(Validator::isRegex('/^abc$/')); $this->assertTrue(Validator::isPhone('800-999-5555')); $this->assertTrue(Validator::isUrl('http://google.com')); $this->assertTrue(Validator::isUrl('google.com', 'loose')); }