Skip to content

Commit

Permalink
Add a Windows "binary".
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-perreal committed Nov 30, 2019
1 parent 832281d commit 5d26d2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/composer-require-checker.bat
@@ -0,0 +1 @@
@php %~dp0\composer-require-checker.php %*
6 changes: 5 additions & 1 deletion test/ComposerRequireCheckerTest/BinaryTest.php
Expand Up @@ -12,7 +12,11 @@ final class BinaryTest extends TestCase

protected function setUp(): void
{
$this->bin = __DIR__ . "/../../bin/composer-require-checker";
if (strpos(\PHP_OS, "WIN") === 0) {
$this->bin = __DIR__ . "\\..\\..\\bin\\composer-require-checker.bat";
} else {
$this->bin = __DIR__ . "/../../bin/composer-require-checker";
}
}

public function testSuccess(): void
Expand Down

0 comments on commit 5d26d2b

Please sign in to comment.