Example #1
0
 /**
  * @dataProvider httpProtocolProvider
  *
  * @param mixed $input
  * @param string $expected
  */
 public function testGetHttpProtocol($input, $expected)
 {
     $request = new Request(['server' => ['SERVER_PROTOCOL' => $input]], $this->secureRandom, $this->config, $this->stream);
     $this->assertSame($expected, $request->getHttpProtocol());
 }