You are here

public function BinaryFileResponseTest::testSetContent in Zircon Profile 8

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

@expectedException \LogicException

File

vendor/symfony/http-foundation/Tests/BinaryFileResponseTest.php, line 40

Class

BinaryFileResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testSetContent() {
  $response = new BinaryFileResponse(__FILE__);
  $response
    ->setContent('foo');
}