| 1 | <?php |
||
| 14 | abstract class CommandTestCase extends KernelTestCase |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var \Symfony\Component\Console\Tester\CommandTester |
||
| 18 | */ |
||
| 19 | protected $commandTester; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get instance of console command |
||
| 23 | * |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | abstract protected function getCommandInstance(); |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get command text |
||
| 30 | * |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | abstract protected function getCommand(); |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Return booted kernel |
||
| 37 | * |
||
| 38 | * @return \Symfony\Component\HttpKernel\KernelInterface |
||
| 39 | */ |
||
| 40 | protected function getKernel() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Boot command before run tests |
||
| 50 | */ |
||
| 51 | protected function setUp() |
||
| 58 | } |
||
| 59 |