���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/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.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�