getProtocol() 공개 정적인 메소드

public static getProtocol ( )
예제 #1
0
파일: UriTest.php 프로젝트: letsdrink/ouzo
 /**
  * @test
  * @dataProvider protocols
  * @param string $header
  * @param mixed $value
  * @param string $expected
  */
 public function shouldReturnCorrectProtocol($header, $value, $expected)
 {
     //given
     $_SERVER[$header] = $value;
     //when
     $protocol = Uri::getProtocol();
     //then
     $this->assertEquals($expected, $protocol);
 }