autoPrefixUrl() 공개 정적인 메소드

Add protocol prefix if necessary (and possible)
public static autoPrefixUrl ( string $url, string | null $prefix = null ) : string
$url string
$prefix string | null
리턴 string
예제 #1
0
 /**
  * UtilityTest::testAutoPrefixUrl()
  *
  * @covers ::autoPrefixUrl
  * @return void
  */
 public function testAutoPrefixUrl()
 {
     $res = Utility::autoPrefixUrl('www.spiegel.de');
     $this->assertEquals('http://www.spiegel.de', $res);
 }