Files
szkoleniauryzaj.pl/wp-content/plugins/wp-optimize/vendor/rosell-dk/exec-with-fallback/tests/ProcOpenTest.php
2024-11-10 21:08:49 +01:00

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);
}
}