1 | <?php |
||
21 | use Symfony\Component\HttpKernel\EventListener\RouterListener; |
||
22 | use Symfony\Component\HttpKernel\HttpKernel; |
||
23 | use Symfony\Component\Routing\Matcher\UrlMatcher; |
||
24 | use Symfony\Component\Routing\RequestContext; |
||
25 | use Symfony\Component\Routing\RouteCollectionBuilder; |
||
26 | use SymfonyUtil\Controller\EngineAsArgumentController; |
||
27 | use Tests\Component\AppKernel; |
||
28 | |||
29 | /** |
||
30 | * @covers \SymfonyUtil\Controller\EngineAsArgumentController |
||
31 | */ |
||
32 | final class EngineAsArgumentInKernelControllerTest extends TestCase |
||
|
|||
33 | { |
||
34 | public function testCanBeCreated() |
||
35 | { |
||
36 | $this->assertInstanceOf( |
||
37 | // ...::class, // 5.4 < php |
||
38 | 'Symfony\Component\HttpKernel\Kernel', |
||
39 | new AppKernel('dev', true) |
||
40 | ); |
||
41 | } |
||
42 | |||
43 | public function testKernelInterface() |
||
44 | { |
||
45 | $this->assertInstanceOf( |
||
46 | // ...::class, // 5.4 < php |
||
47 | 'Symfony\Component\HttpKernel\KernelInterface', |
||
48 | new AppKernel('dev', true) |
||
49 | ); |
||
50 | } |
||
90 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.