getProtocol() public static method

public static getProtocol ( )
示例#1
0
 /**
  * @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);
 }