isHTTPURL() public static method

Is the passed URL an absolute URL using the HTTP or HTTPS scheme?
Since: 1.0.0
public static isHTTPURL ( string $url ) : boolean
$url string URL to test
return boolean true if URL was parsed and contains a HTTP or HTTPs scheme
Beispiel #1
0
 /**
  * Test URL tester
  *
  * @since 1.0.0
  *
  * @covers ::isHTTPURL
  * @small
  *
  * @dataProvider urlProvider
  *
  * @return void
  */
 public function testIsHTTPURL($url, $expected_validity, $message = '')
 {
     if ($expected_validity) {
         $this->assertTrue(\Twitter\Intents\Tweet::isHTTPURL($url), $message);
     } else {
         $this->assertFalse(\Twitter\Intents\Tweet::isHTTPURL($url), $message);
     }
 }