You are here

public function ResponseTest::testGetSetProtocolVersion in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/ResponseTest.php \Symfony\Component\HttpFoundation\Tests\ResponseTest::testGetSetProtocolVersion()

File

vendor/symfony/http-foundation/Tests/ResponseTest.php, line 386

Class

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetSetProtocolVersion() {
  $response = new Response();
  $this
    ->assertEquals('1.0', $response
    ->getProtocolVersion());
  $response
    ->setProtocolVersion('1.1');
  $this
    ->assertEquals('1.1', $response
    ->getProtocolVersion());
}