mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-15 23:52:23 +00:00
Add two failings tests
This commit is contained in:
parent
7502b6f891
commit
19d18c5a6a
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace Rector\Symfony\Tests\Rector\ClassMethod\MergeMethodAnnotationToRouteAnnotationRector\Fixture;
|
||||
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class ClassWithTemplateAnnotationController
|
||||
{
|
||||
/**
|
||||
* @Route("/show/{id}")
|
||||
* @Method({"GET", "HEAD"})
|
||||
* @Template("AdminBundle:Payment:create.html.twig")
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
-----
|
||||
<?php
|
||||
|
||||
namespace Rector\Symfony\Tests\Rector\ClassMethod\MergeMethodAnnotationToRouteAnnotationRector\Fixture;
|
||||
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class ClassWithTemplateAnnotationController
|
||||
{
|
||||
/**
|
||||
* @Route("/show/{id}", methods={"GET", "HEAD"})
|
||||
* @Template("AdminBundle:Payment:create.html.twig")
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace Rector\Symfony\Tests\Rector\ClassMethod\MergeMethodAnnotationToRouteAnnotationRector\Fixture;
|
||||
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class ClassWithTemplateAnnotation2Controller
|
||||
{
|
||||
/**
|
||||
* @Route("/show/{id}")
|
||||
* @Template("AdminBundle:Payment:create.html.twig")
|
||||
* @Method({"GET", "HEAD"})
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
-----
|
||||
<?php
|
||||
|
||||
namespace Rector\Symfony\Tests\Rector\ClassMethod\MergeMethodAnnotationToRouteAnnotationRector\Fixture;
|
||||
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
class ClassWithTemplateAnnotation2Controller
|
||||
{
|
||||
/**
|
||||
* @Route("/show/{id}", methods={"GET", "HEAD"})
|
||||
* @Template("AdminBundle:Payment:create.html.twig")
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user