mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
add test case with route, less pass for now
This commit is contained in:
parent
9c10d98ac7
commit
6140f1a835
@ -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');
|
||||
}
|
||||
}
|
@ -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'],
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,15 @@
|
||||
<?php declare (strict_types=1);
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
class AppController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* @Template()
|
||||
* @Route("/", name="homepage")
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user