You are here

public function RequestTest::testGetRequestFormat in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 1355

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetRequestFormat() {
  $request = new Request();
  $this
    ->assertEquals('html', $request
    ->getRequestFormat());
  $request = new Request();
  $this
    ->assertNull($request
    ->getRequestFormat(null));
  $request = new Request();
  $this
    ->assertNull($request
    ->setRequestFormat('foo'));
  $this
    ->assertEquals('foo', $request
    ->getRequestFormat(null));
}