first commit
This commit is contained in:
21
wp-content/plugins/wp-optimize/vendor/rosell-dk/exec-with-fallback/tests/ProcOpenTest.php
vendored
Normal file
21
wp-content/plugins/wp-optimize/vendor/rosell-dk/exec-with-fallback/tests/ProcOpenTest.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user