PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 3.2.5
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v3.2.5
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / rosell-dk / exec-with-fallback / tests / ShellExecTest.php

ShellExecTest.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 3.2.5, at vendor/rosell-dk/exec-with-fallback/tests/ShellExecTest.php

39 lines 853 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace ExecWithFallback\Tests;
3
4 use PHPUnit\Framework\TestCase;
5
6 use ExecWithFallback\ShellExec;
7
8 class ShellExecTest extends BaseTest
9 {
10
11 public $className = 'ShellExec';
12 public $supportsResultCode = false;
13
14 public function isAvailable()
15 {
16 return function_exists('shell_exec');
17 }
18
19 public function runExec($command, &$output = null, &$result_code = null)
20 {
21 if (func_num_args() == 3) {
22 return ShellExec::exec($command, $output, $result_code);
23 } else {
24 return ShellExec::exec($command, $output);
25 }
26 }
27
28 /*
29 public function testCodeSupplied()
30 {
31 if ($this->checkAvailability()) {
32 $output = [];
33 $execResult = $this->runExec('echo hi', $output, $return_code);
34 $this->assertFalse($execResult);
35 }
36 }*/
37
38 }
39