-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failing Appveyor builds (fixes #261)
- Loading branch information
1 parent
b9b9240
commit 26fc47b
Showing
3 changed files
with
49 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace League\CommonMark\Tests\Functional; | ||
|
||
use mikehaertl\shellcommand\Command; | ||
|
||
abstract class AbstractBinTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected function getPathToCommonmark() | ||
{ | ||
return realpath(__DIR__ . '/../../bin/commonmark'); | ||
} | ||
|
||
/** | ||
* @return Command | ||
*/ | ||
protected function createCommand() | ||
{ | ||
$path = $this->getPathToCommonmark(); | ||
|
||
$command = new Command(); | ||
if ($command->getIsWindows()) { | ||
$command->setCommand('php'); | ||
$command->addArg($path); | ||
} else { | ||
$command->setCommand($path); | ||
} | ||
|
||
return $command; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters