|
3 | 3 | use Command\GenerateCommand; |
4 | 4 | use Command\CompleteCommand; |
5 | 5 | use Command\ErrorCommand; |
| 6 | +use Application\HTTP\Router; |
6 | 7 |
|
7 | | -describe('Router', function(){ |
8 | | - beforeEach(function(){ |
9 | | - $this->router = new \Router; |
| 8 | +describe('Router', function () { |
| 9 | + beforeEach(function () { |
| 10 | + $this->router = new Router; |
10 | 11 | }); |
11 | | - describe('->getCommand()', function(){ |
12 | | - it('should return GenerateCommand when generate name is passed', function(){ |
| 12 | + describe('->getCommand()', function () { |
| 13 | + it('should return GenerateCommand when generate name is passed', function () { |
13 | 14 | expect($this->router->getCommand('generate')) |
14 | 15 | ->to->be->an->instanceof(GenerateCommand::class); |
15 | 16 | }); |
16 | | - it('should return CompleteCommand when complete name is passed', function(){ |
| 17 | + it('should return CompleteCommand when complete name is passed', function () { |
17 | 18 | expect($this->router->getCommand('complete')) |
18 | 19 | ->to->be->an->instanceof(CompleteCommand::class); |
19 | 20 | }); |
20 | | - it('should return ErrorCommand when unknown name is passed', function(){ |
| 21 | + it('should return ErrorCommand when unknown name is passed', function () { |
21 | 22 | expect($this->router->getCommand('someUknownName')) |
22 | 23 | ->to->be->an->instanceof(ErrorCommand::class); |
23 | 24 | }); |
|
0 commit comments