diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-09-07 08:17:24 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-09-07 08:17:24 +0100 |
| commit | 43e2cc54543d9f79c9805f752e78e25c351646ff (patch) | |
| tree | f8f252a8f0f6ff6061c177456865102c50a04810 /vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php | |
| parent | 4e96702fabf715ae955aafd54002fb5c57a109cf (diff) | |
| download | webtrees-43e2cc54543d9f79c9805f752e78e25c351646ff.tar.gz webtrees-43e2cc54543d9f79c9805f752e78e25c351646ff.tar.bz2 webtrees-43e2cc54543d9f79c9805f752e78e25c351646ff.zip | |
Update vendor dependencies
Diffstat (limited to 'vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php')
| -rw-r--r-- | vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php b/vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php index e2e72df00c..15e543a214 100644 --- a/vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php +++ b/vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php @@ -23,7 +23,7 @@ class FragmentHandlerTest extends TestCase { private $requestStack; - protected function setUp() + protected function setUp(): void { $this->requestStack = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\RequestStack') ->disableOriginalConstructor() @@ -36,31 +36,25 @@ class FragmentHandlerTest extends TestCase ; } - /** - * @expectedException \InvalidArgumentException - */ public function testRenderWhenRendererDoesNotExist() { + $this->expectException('InvalidArgumentException'); $handler = new FragmentHandler($this->requestStack); $handler->render('/', 'foo'); } - /** - * @expectedException \InvalidArgumentException - */ public function testRenderWithUnknownRenderer() { + $this->expectException('InvalidArgumentException'); $handler = $this->getHandler($this->returnValue(new Response('foo'))); $handler->render('/', 'bar'); } - /** - * @expectedException \RuntimeException - * @expectedExceptionMessage Error when rendering "http://localhost/" (Status code is 404). - */ public function testDeliverWithUnsuccessfulResponse() { + $this->expectException('RuntimeException'); + $this->expectExceptionMessage('Error when rendering "http://localhost/" (Status code is 404).'); $handler = $this->getHandler($this->returnValue(new Response('foo', 404))); $handler->render('/', 'foo'); |
