示例#1
0
 /**
  *
  * @dataProvider providerTestIsRfc
  */
 public function testIsRfc($url, $assertResult)
 {
     $result = Url::isRfc($url);
     $this->assertSame($assertResult, $result);
 }
示例#2
0
 public function setUrl($url)
 {
     if (false !== Helper\Url::isRfc($url)) {
         self::$_url = $url;
         self::$_host = Helper\Url::parseHost($url);
     } else {
         throw new E('Invalid URL!');
         exit;
     }
     return true;
 }