$59 GRAYBYTE WORDPRESS FILE MANAGER $76

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php53/usr/share/pear/test/Process/Symfony/Component/Process/Tests/

HOME
Current File : /opt/alt/php53/usr/share/pear/test/Process/Symfony/Component/Process/Tests//ProcessUtilsTest.php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Process\Tests;

use Symfony\Component\Process\ProcessUtils;

class ProcessUtilsTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @dataProvider dataArguments
     */
    public function testEscapeArgument($result, $argument)
    {
        $this->assertSame($result, ProcessUtils::escapeArgument($argument));
    }

    public function dataArguments()
    {
        if (defined('PHP_WINDOWS_VERSION_BUILD')) {
            return array(
                array('"\"php\" \"-v\""', '"php" "-v"'),
                array('"foo bar"', 'foo bar'),
                array('^%"path"^%', '%path%'),
                array('"<|>\\" \\"\'f"', '<|>" "\'f'),
                array('""', ''),
                array('"with\trailingbs\\\\"', 'with\trailingbs\\'),
            );
        }

        return array(
            array("'\"php\" \"-v\"'", '"php" "-v"'),
            array("'foo bar'", 'foo bar'),
            array("'%path%'", '%path%'),
            array("'<|>\" \"'\\''f'", '<|>" "\'f'),
            array("''", ''),
            array("'with\\trailingbs\\'", 'with\trailingbs\\'),
        );
    }
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 7.05 AM
root / root
0755
AbstractProcessTest.php
26.065 KB
18 Dec 2019 6.20 PM
root / root
0644
NonStopableProcess.php
0.793 KB
18 Dec 2019 6.20 PM
root / root
0644
PhpExecutableFinderTest.php
1.825 KB
18 Dec 2019 6.20 PM
root / root
0644
PhpProcessTest.php
0.657 KB
18 Dec 2019 6.20 PM
root / root
0644
PipeStdinInStdoutStdErrStreamSelect.php
1.506 KB
18 Dec 2019 6.20 PM
root / root
0644
ProcessBuilderTest.php
5.859 KB
18 Dec 2019 6.20 PM
root / root
0644
ProcessFailedExceptionTest.php
2.644 KB
18 Dec 2019 6.20 PM
root / root
0644
ProcessInSigchildEnvironment.php
0.442 KB
18 Dec 2019 6.20 PM
root / root
0644
ProcessUtilsTest.php
1.333 KB
18 Dec 2019 6.20 PM
root / root
0644
SigchildDisabledProcessTest.php
7.921 KB
18 Dec 2019 6.20 PM
root / root
0644
SigchildEnabledProcessTest.php
4.34 KB
18 Dec 2019 6.20 PM
root / root
0644
SignalListener.php
0.248 KB
18 Dec 2019 6.20 PM
root / root
0644
SimpleProcessTest.php
6.243 KB
18 Dec 2019 6.20 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF