You are here

public function ResponseTest::testIsEmpty 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::testIsEmpty()

File

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

Class

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testIsEmpty() {
  foreach (array(
    204,
    304,
  ) as $code) {
    $response = new Response('', $code);
    $this
      ->assertTrue($response
      ->isEmpty());
  }
  $response = new Response('', 200);
  $this
    ->assertFalse($response
    ->isEmpty());
}