| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class NotifyCommandTest extends TestCase |
||
| 15 | { |
||
| 16 | protected function setUp(): void |
||
| 19 | } |
||
| 20 | |||
| 21 | public function test_existing_ticker(): void |
||
| 22 | { |
||
| 23 | $actual = $this->runCommand('GM --channels=fake --maxNews=1 --maxRepetitions=1 --sleepingTime=0'); |
||
| 24 | self::assertSame(Command::SUCCESS, $actual); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function test_non_existing_ticker(): void |
||
| 31 | } |
||
| 32 | |||
| 33 | private function runCommand(string $inputString): int |
||
| 38 | ); |
||
| 39 | } |
||
| 41 |