diff --git a/src/Symfony/Component/HttpKernel/Tests/HttpContentRendererTest.php b/src/Symfony/Component/HttpKernel/Tests/HttpContentRendererTest.php index 1583fd5bea..38305c93d0 100644 --- a/src/Symfony/Component/HttpKernel/Tests/HttpContentRendererTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/HttpContentRendererTest.php @@ -33,11 +33,22 @@ class HttpContentRendererTest extends \PHPUnit_Framework_TestCase $renderer->render('/', 'foo'); } + /** + * @expectedException InvalidArgumentException + */ + public function testRenderWithUnknownStrategy() + { + $strategy = $this->getStrategy($this->returnValue(new Response('foo'))); + $renderer = $this->getRenderer($strategy); + + $renderer->render('/', 'bar'); + } + /** * @expectedException RuntimeException * @expectedExceptionMessage Error when rendering "http://localhost/" (Status code is 404). */ - public function testDeliverWithUnSuccessfulResponse() + public function testDeliverWithUnsuccessfulResponse() { $strategy = $this->getStrategy($this->returnValue(new Response('foo', 404))); $renderer = $this->getRenderer($strategy);