Skip to content

Commit

Permalink
Add phar test
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Mar 5, 2024
1 parent 14b414b commit 21ab5f2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/ComposerRequireCheckerTest/PharTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,13 @@ public function testMissingCustomConfiguration(): void
$this->assertStringContainsString('Configuration file [no-such-file] does not exist.', implode("\n", $output));
$this->assertNotEquals(0, $return);
}

public function testMissingDefaultConfiguration(): void
{
chdir(__DIR__ . '/../fixtures/noUnknownComposerSymbol');
exec(sprintf('%s check --config-file=%s 2>&1', $this->bin, 'composer-require-checker.json'), $output, $return);

$this->assertStringContainsString('Configuration file [composer-require-checker.json] does not exist.', implode("\n", $output));
$this->assertNotEquals(0, $return);
}
}

0 comments on commit 21ab5f2

Please sign in to comment.