Skip to content

Commit 56e3be7

Browse files
committed
fix tests
1 parent f37691b commit 56e3be7

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Routing/AttributeRouteControllerLoaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Bundle\FrameworkBundle\Routing\AttributeRouteControllerLoader;
16-
use Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures\InvokableController;
17-
use Symfony\Component\Routing\Tests\Fixtures\AttributeFixtures\MethodActionControllers;
16+
use Symfony\Bundle\FrameworkBundle\Tests\Routing\Fixtures\InvokableController;
17+
use Symfony\Bundle\FrameworkBundle\Tests\Routing\Fixtures\MethodActionControllers;
1818

1919
class AttributeRouteControllerLoaderTest extends TestCase
2020
{
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bundle\FrameworkBundle\Tests\Routing\Fixtures;
13+
14+
use Symfony\Component\Routing\Attribute\Route;
15+
16+
#[Route(path: '/here', name: 'lol', methods: ['GET', 'POST'], schemes: ['https'])]
17+
class InvokableController
18+
{
19+
public function __invoke()
20+
{
21+
}
22+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bundle\FrameworkBundle\Tests\Routing\Fixtures;
13+
14+
use Symfony\Component\Routing\Attribute\Route;
15+
16+
#[Route('/the/path')]
17+
class MethodActionControllers
18+
{
19+
#[Route(name: 'post', methods: ['POST'])]
20+
public function post()
21+
{
22+
}
23+
24+
#[Route(name: 'put', methods: ['PUT'], priority: 10)]
25+
public function put()
26+
{
27+
}
28+
}

0 commit comments

Comments
 (0)