1 | <?php |
||
11 | final class ControllerFinderTest extends PHPUnit_Framework_TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @var ControllerFinderInterface |
||
15 | */ |
||
16 | private $controllerFinder; |
||
17 | |||
18 | protected function setUp() |
||
19 | { |
||
20 | $this->controllerFinder = new ControllerFinder(); |
||
21 | } |
||
22 | |||
23 | public function testFindControllersInDirs() |
||
24 | { |
||
25 | $controllers = $this->controllerFinder->findControllersInDirs([__DIR__.'/ControllerFinderSource']); |
||
26 | |||
27 | $this->assertEquals( |
||
28 | [SomeController::class, SomeOtherController::class], |
||
29 | $controllers, |
||
30 | '', |
||
31 | 0.0, |
||
32 | 10, |
||
33 | true |
||
34 | ); |
||
35 | } |
||
36 | } |
||
37 |