From ca57748fd895ba1f94161c13e56ec32efab09eed Mon Sep 17 00:00:00 2001 From: Nardberjean Date: Wed, 6 Dec 2017 12:24:54 -0500 Subject: [PATCH] Delete VariadicControllerTest.php --- tests/VariadicControllerTest.php | 68 -------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 tests/VariadicControllerTest.php diff --git a/tests/VariadicControllerTest.php b/tests/VariadicControllerTest.php deleted file mode 100644 index d5283da..0000000 --- a/tests/VariadicControllerTest.php +++ /dev/null @@ -1,68 +0,0 @@ -assertInstanceOf( - // VariadicController::class, // 5.4 < php (code is checked even if not executed!) - 'SymfonyUtil\Controller\VariadicController', - new VariadicController(new TwigEngine( - new Twig_Environment(new Twig_Loader_Array(['index.html.twig' => 'Hello World!'])), - new TemplateNameParser() - )) - ); - } - - public function testEmptyReturnsResponse() - { - $this->assertInstanceOf( - // Response::class, // 5.4 < php (code is checked even if not executed!) - 'Symfony\Component\HttpFoundation\Response', - (new VariadicController(new TwigEngine( - new Twig_Environment(new Twig_Loader_Array(['index.html.twig' => 'Hello World!'])), - new TemplateNameParser() - )))->__invoke() - ); - } - - public function testArrayReturnsResponse() - { - $this->assertInstanceOf( - // Response::class, // 5.4 < php (code is checked even if not executed!) - 'Symfony\Component\HttpFoundation\Response', - (new VariadicController(new TwigEngine( - new Twig_Environment(new Twig_Loader_Array([ - 'index.html.twig' => '', - ])), - new TemplateNameParser() - )))->__invoke([ - 'One', - 'Two', - 'Three', - ]) - ); - } -} - -// http://api.symfony.com/3.3/Symfony/Bridge/Twig/TwigEngine.html -// http://api.symfony.com/3.3/Symfony/Bundle/TwigBundle/TwigEngine.html