DataSift\Storyplayer\CommandLib\SshClientTest::testCanEscapeParamsForRemoteGlobbing PHP Method

testCanEscapeParamsForRemoteGlobbing() public method

    public function testCanEscapeParamsForRemoteGlobbing()
    {
        // ----------------------------------------------------------------
        // setup your test
        $i = new Injectables();
        $i->initOutputSupport();
        $i->initDataFormatterSupport();
        $i->initRuntimeConfigSupport($i);
        $st = new StoryTeller($i);
        $obj = new SshClient($st);
        $inputParams = "ls *";
        $expectedParams = "ls '*'";
        // ----------------------------------------------------------------
        // perform the change
        $actualParams = $obj->convertParamsForUse($inputParams);
        // ----------------------------------------------------------------
        // test the results
        $this->assertEquals($expectedParams, $actualParams);
    }