You are here

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

@expectedException \UnexpectedValueException @dataProvider invalidContentProvider

File

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

Class

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testSetContentInvalid($content) {
  $response = new Response();
  $response
    ->setContent($content);
}