Skip to content

Commit

Permalink
request protocol version test
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Bakker committed Dec 22, 2015
1 parent 0a84aa8 commit daabd4d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Http/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -867,4 +867,16 @@ public function testGetParametersWithBodyPriority()

$this->assertEquals(['abc' => 'xyz', 'foo' => 'bar'], $request->getParams());
}

/*******************************************************************************
* Protocol
******************************************************************************/

public function testGetProtocolVersion()
{
$env = Environment::mock(['SERVER_PROTOCOL' => 'HTTP/1.0']);
$request = Request::createFromEnvironment($env);

$this->assertEquals('1.0', $request->getProtocolVersion());
}
}

0 comments on commit daabd4d

Please sign in to comment.