Exemplo n.º 1
0
 /**
  * CCValidator::regex tests
  */
 public function test_regex()
 {
     $validator = new CCValidator(array('1' => 'foo', '2' => 'bbo'));
     $this->assertTrue($validator->regex('1', "/^foo\$/"));
     $this->assertFalse($validator->regex('2', "/^foo\$/"));
 }