Commit 2057560b authored by Fabien Potencier's avatar Fabien Potencier

removed obsolete code

parent bd18b1fc
...@@ -530,13 +530,9 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase ...@@ -530,13 +530,9 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
{ {
$app = new Application(); $app = new Application();
try { $response = $app->sendFile(__FILE__, 200, array('Content-Type: application/php'));
$response = $app->sendFile(__FILE__, 200, array('Content-Type: application/php')); $this->assertInstanceOf('Symfony\Component\HttpFoundation\BinaryFileResponse', $response);
$this->assertInstanceOf('Symfony\Component\HttpFoundation\BinaryFileResponse', $response); $this->assertEquals(__FILE__, (string) $response->getFile());
$this->assertEquals(__FILE__, (string) $response->getFile());
} catch (\RuntimeException $e) {
$this->assertFalse(class_exists('Symfony\Component\HttpFoundation\BinaryFileResponse'));
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment