first commit
This commit is contained in:
23
wp-content/plugins/wp-optimize/vendor/rosell-dk/exec-with-fallback/tests/PassthruTest.php
vendored
Normal file
23
wp-content/plugins/wp-optimize/vendor/rosell-dk/exec-with-fallback/tests/PassthruTest.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace ExecWithFallback\Tests;
|
||||
|
||||
use ExecWithFallback\Passthru;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
|
||||
class PassthruTest extends BaseTest
|
||||
{
|
||||
|
||||
public $className = 'Passthru';
|
||||
|
||||
public function isAvailable()
|
||||
{
|
||||
return function_exists('passthru');
|
||||
}
|
||||
|
||||
public function runExec($command, &$output = null, &$result_code = null)
|
||||
{
|
||||
return Passthru::exec($command, $output, $result_code);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user