Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function testStart(): void |
||
38 | { |
||
39 | $core = $this->getCore(new StaticLocator([ |
||
40 | TestCommand::class |
||
41 | ])); |
||
42 | |||
43 | $output = new BufferedOutput(); |
||
44 | |||
45 | $core->start(new ArrayInput([]), $output); |
||
46 | $output = $output->fetch(); |
||
47 | |||
48 | $this->assertStringContainsString('Spiral Framework', $output); |
||
49 | $this->assertStringContainsString('Test Command', $output); |
||
50 | $this->assertStringContainsString('test:user', $output); |
||
51 | } |
||
53 |