Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/tests/phpunit/unit/includes/GlobalFunctions/WfEscapeShellArgTest.php
Ðазад
<?php /** * @group GlobalFunctions * @covers ::wfEscapeShellArg */ class WfEscapeShellArgTest extends MediaWikiUnitTestCase { public function testSingleInput() { if ( wfIsWindows() ) { $expected = '"blah"'; } else { $expected = "'blah'"; } $actual = wfEscapeShellArg( 'blah' ); $this->assertEquals( $expected, $actual ); } public function testMultipleArgs() { if ( wfIsWindows() ) { $expected = '"foo" "bar" "baz"'; } else { $expected = "'foo' 'bar' 'baz'"; } $actual = wfEscapeShellArg( 'foo', 'bar', 'baz' ); $this->assertEquals( $expected, $actual ); } public function testMultipleArgsAsArray() { if ( wfIsWindows() ) { $expected = '"foo" "bar" "baz"'; } else { $expected = "'foo' 'bar' 'baz'"; } $actual = wfEscapeShellArg( [ 'foo', 'bar', 'baz' ] ); $this->assertEquals( $expected, $actual ); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка