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