MediaWiki  1.23.15
wfShellExecTest.php
Go to the documentation of this file.
1 <?php
2 
8  public function testBug67870() {
10  // 333 = 331 + CRLF
11  ? ( 'for /l %i in (1, 1, 1001) do @echo ' . str_repeat( '*', 331 ) )
12  : 'printf "%-333333s" "*"';
13 
14  // Test several times because it involves a race condition that may randomly succeed or fail
15  for ( $i = 0; $i < 10; $i++ ) {
17  $this->assertEquals( 333333, strlen( $output ) );
18  }
19  }
20 }
wfShellExec
wfShellExec( $cmd, &$retval=null, $environ=array(), $limits=array(), $options=array())
Execute a shell command, with time and memory limits mirrored from the PHP configuration if supported...
Definition: GlobalFunctions.php:2851
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
WfShellExecTest\testBug67870
testBug67870()
Definition: wfShellExecTest.php:8
MediaWikiTestCase
Definition: MediaWikiTestCase.php:6
$command
$command
Definition: cdb.php:63
wfIsWindows
wfIsWindows()
Check if the operating system is Windows.
Definition: GlobalFunctions.php:2571
$output
& $output
Definition: hooks.txt:375
WfShellExecTest
@group GlobalFunctions @covers wfShellExec
Definition: wfShellExecTest.php:7