22 lines
428 B
PHP
22 lines
428 B
PHP
<?php
|
|
namespace ExecWithFallback\Tests;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use ExecWithFallback\ProcOpen;
|
|
|
|
class ProcOpenTest extends BaseTest
|
|
{
|
|
|
|
public $className = 'ProcOpen';
|
|
|
|
public function isAvailable()
|
|
{
|
|
return function_exists('proc_open');
|
|
}
|
|
|
|
public function runExec($command, &$output = null, &$result_code = null)
|
|
{
|
|
return ProcOpen::exec($command, $output, $result_code);
|
|
}
|
|
}
|