add test case with route, less pass for now

This commit is contained in:
TomasVotruba 2018-01-17 13:26:42 +01:00
parent 9c10d98ac7
commit 6140f1a835
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<?php declare (strict_types=1);
namespace App\Controller;
class AppController extends AbstractController
{
/**
* @Route ("/", name="homepage")
*/
public function index()
{
return $this->render('app/index.html.twig');
}
}

View File

@ -29,6 +29,7 @@ final class TemplateAnnotationVersion5RectorTest extends AbstractConfigurableRec
[__DIR__ . '/Wrong/Version5/wrong6.php.inc', __DIR__ . '/Correct/Version5/correct6.php.inc'],
[__DIR__ . '/Wrong/Version5/wrong7.php.inc', __DIR__ . '/Correct/Version5/correct7.php.inc'],
[__DIR__ . '/Wrong/Version5/wrong8.php.inc', __DIR__ . '/Correct/Version5/correct8.php.inc'],
[__DIR__ . '/Wrong/Version5/wrong9.php.inc', __DIR__ . '/Correct/Version5/correct9.php.inc'],
];
}

View File

@ -0,0 +1,15 @@
<?php declare (strict_types=1);
namespace App\Controller;
class AppController extends AbstractController
{
/**
* @Template()
* @Route("/", name="homepage")
*/
public function index()
{
return [];
}
}