| 1 |
<?php |
| 2 |
namespace ExecWithFallback\Tests; |
| 3 |
|
| 4 |
use ExecWithFallback\Passthru; |
| 5 |
|
| 6 |
use PHPUnit\Framework\TestCase; |
| 7 |
|
| 8 |
|
| 9 |
class PassthruTest extends BaseTest |
| 10 |
{ |
| 11 |
|
| 12 |
public $className = 'Passthru'; |
| 13 |
|
| 14 |
public function isAvailable() |
| 15 |
{ |
| 16 |
return function_exists('passthru'); |
| 17 |
} |
| 18 |
|
| 19 |
public function runExec($command, &$output = null, &$result_code = null) |
| 20 |
{ |
| 21 |
return Passthru::exec($command, $output, $result_code); |
| 22 |
} |
| 23 |
} |
| 24 |
|