Exemplo n.º 1
0
 public function test_test()
 {
     $numeric = F\test('/^[0-9.]+$/');
     $this->assertTrue($numeric('467838.3578'));
     $this->assertFalse($numeric('4678a8.3578'));
 }
Exemplo n.º 2
0
 protected function isString($text)
 {
     return F\test('/^[a-zA-Z-_]*$/', $text);
 }