You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 line
525 B

  1. <?php
  2. declare(strict_types=1);
  3. namespace OrpheusNET\Logchecker;
  4. use PHPUnit\Framework\TestCase;
  5. class UtilTest extends TestCase
  6. {
  7. public function commandExistsDataProvider(): array
  8. {
  9. return [
  10. ['cd', true],
  11. ['totallyfakecommandthatdefinitelydoesnotexist', false]
  12. ];
  13. }
  14. /**
  15. * @dataProvider commandExistsDataProvider
  16. */
  17. public function testCommandExists($command, $exists)
  18. {
  19. $this->assertSame($exists, Util::commandExists($command));
  20. }
  21. }