Ejemplo n.º 1
0
 /**
  * CCValidator::url tests
  */
 public function test_url()
 {
     $validator = new CCValidator(array('1' => 'http://clancats.io', '2' => 'http//clancats.io', '3' => 'clancats.com', '4' => 'ftp://cc.io'));
     $this->assertTrue($validator->url('1'));
     $this->assertFalse($validator->url('2'));
     $this->assertFalse($validator->url('3'));
     $this->assertTrue($validator->url('4'));
 }