MediaWiki  1.33.0
CommandTest Class Reference

\MediaWiki\Shell\Command Shell More...

Inheritance diagram for CommandTest:
Collaboration diagram for CommandTest:

Public Member Functions

 provideExecute ()
 
 testEnvironment ()
 
 testExecute ( $commandInput, $expectedExitCode, $expectedOutput)
 provideExecute More...
 
 testInput ()
 
 testLogStderr ()
 
 testNullsAreSkipped ()
 Test that null values are skipped by params() and unsafeParams() More...
 
 testOutput ()
 
 testStdout ()
 
 testStdoutRedirection ()
 
 testT69870 ()
 

Private Member Functions

 requirePosix ()
 

Detailed Description

\MediaWiki\Shell\Command Shell

Definition at line 10 of file CommandTest.php.

Member Function Documentation

◆ provideExecute()

CommandTest::provideExecute ( )

Definition at line 35 of file CommandTest.php.

◆ requirePosix()

CommandTest::requirePosix ( )
private

◆ testEnvironment()

CommandTest::testEnvironment ( )

Definition at line 43 of file CommandTest.php.

References $command, and requirePosix().

◆ testExecute()

CommandTest::testExecute (   $commandInput,
  $expectedExitCode,
  $expectedOutput 
)

provideExecute

Definition at line 23 of file CommandTest.php.

References $command, and requirePosix().

◆ testInput()

CommandTest::testInput ( )

Definition at line 158 of file CommandTest.php.

References $command, and requirePosix().

◆ testLogStderr()

CommandTest::testLogStderr ( )

Definition at line 137 of file CommandTest.php.

References $command, $context, captcha-old\count, requirePosix(), and true.

◆ testNullsAreSkipped()

CommandTest::testNullsAreSkipped ( )

Test that null values are skipped by params() and unsafeParams()

Definition at line 114 of file CommandTest.php.

References $command.

◆ testOutput()

CommandTest::testOutput ( )

Definition at line 81 of file CommandTest.php.

References $command, $IP, and requirePosix().

◆ testStdout()

CommandTest::testStdout ( )

Definition at line 54 of file CommandTest.php.

References $command, and requirePosix().

◆ testStdoutRedirection()

CommandTest::testStdoutRedirection ( )

Definition at line 67 of file CommandTest.php.

References $command, and requirePosix().

◆ testT69870()

CommandTest::testT69870 ( )

Definition at line 121 of file CommandTest.php.

References $command, $output, and wfIsWindows().


The documentation for this class was generated from the following file: