/** * * @dataProvider providerTestIsRfc */ public function testIsRfc($url, $assertResult) { $result = Url::isRfc($url); $this->assertSame($assertResult, $result); }
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; }