aboutsummaryrefslogtreecommitdiff
path: root/tests/Fixtures/CollidingController.php
blob: 434ffbf01fd84e75a30d188216d72748de485775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

declare(strict_types=1);

namespace BrettParson\MiniRoute\Tests\Fixtures;

use BrettParson\MiniRoute\Attribute\Get;
use BrettParson\MiniRoute\Http\ResponseInterface;

/**
 * Collides with FakeController::index (GET /entries) to probe
 * cross-controller duplicate detection at registration.
 */
final class CollidingController
{
    #[Get('/entries')]
    public function otherIndex(): ResponseInterface
    {
        return new TestResponse(200, 'other');
    }
}