MediaWiki REL1_31
|
\MediaWiki\Shell\Command Shell More...
Public Member Functions | |
provideExecute () | |
testDisablingRestrictions () | |
Ensure that it's possible to disable the default shell restrictions. | |
testEnvironment () | |
testExecute ( $command, $args, $expectedExitCode, $expectedOutput) | |
provideExecute | |
testInput () | |
testLogStderr () | |
testNullsAreSkipped () | |
Test that null values are skipped by params() and unsafeParams() | |
testOutput () | |
testStdout () | |
testStdoutRedirection () | |
testT69870 () | |
Private Member Functions | |
getPhpCommand ( $fileName, array $args=[]) | |
Creates a command that will execute one of the PHP test scripts by its file name, using the current PHP_BIN binary. | |
requirePosix () | |
\MediaWiki\Shell\Command Shell
Definition at line 11 of file CommandTest.php.
|
private |
Creates a command that will execute one of the PHP test scripts by its file name, using the current PHP_BIN binary.
NOTE: the PHP test scripts are located in the sub directory "bin".
string | $fileName | a file name in the "bin" sub-directory |
array | $args | an array of arguments to pass to the PHP script |
Definition at line 205 of file CommandTest.php.
References $args, $command, and $params.
Referenced by testEnvironment(), testExecute(), testInput(), testLogStderr(), testOutput(), testStdout(), and testT69870().
CommandTest::provideExecute | ( | ) |
Definition at line 34 of file CommandTest.php.
|
private |
Definition at line 15 of file CommandTest.php.
References wfIsWindows().
Referenced by testInput(), testStdoutRedirection(), and testT69870().
CommandTest::testDisablingRestrictions | ( | ) |
Ensure that it's possible to disable the default shell restrictions.
Definition at line 184 of file CommandTest.php.
References $command.
CommandTest::testEnvironment | ( | ) |
Definition at line 42 of file CommandTest.php.
References $command, and getPhpCommand().
CommandTest::testExecute | ( | $command, | |
$args, | |||
$expectedExitCode, | |||
$expectedOutput ) |
provideExecute
Definition at line 24 of file CommandTest.php.
References $args, $command, and getPhpCommand().
CommandTest::testInput | ( | ) |
Definition at line 158 of file CommandTest.php.
References $command, getPhpCommand(), and requirePosix().
CommandTest::testLogStderr | ( | ) |
Definition at line 139 of file CommandTest.php.
References $command, $context, getPhpCommand(), and true.
CommandTest::testNullsAreSkipped | ( | ) |
Test that null values are skipped by params() and unsafeParams()
Definition at line 110 of file CommandTest.php.
References $command, and wfIsWindows().
CommandTest::testOutput | ( | ) |
Definition at line 77 of file CommandTest.php.
References $command, and getPhpCommand().
CommandTest::testStdout | ( | ) |
Definition at line 51 of file CommandTest.php.
References $command, and getPhpCommand().
CommandTest::testStdoutRedirection | ( | ) |
Definition at line 62 of file CommandTest.php.
References $command, and requirePosix().
CommandTest::testT69870 | ( | ) |
Definition at line 122 of file CommandTest.php.
References $command, $output, getPhpCommand(), and requirePosix().