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

24 lines
429 B
PHP

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