| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class CrawlCommandTest extends TestCase |
||
| 15 | { |
||
| 16 | protected function setUp(): void |
||
| 17 | { |
||
| 18 | Gacela::bootstrap(__DIR__); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function test_existing_ticker(): void |
||
| 25 | } |
||
| 26 | |||
| 27 | public function test_non_existing_ticker(): void |
||
| 28 | { |
||
| 29 | $actual = $this->runCommand('UNKNOWN_TICKER --maxNews=0'); |
||
| 30 | self::assertSame(Command::FAILURE, $actual); |
||
| 31 | } |
||
| 32 | |||
| 33 | private function runCommand(string $inputString): int |
||
| 38 | ); |
||
| 39 | } |
||
| 41 |