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

testCanGetSshOptionsAsArray() public method

    public function testCanGetSshOptionsAsArray()
    {
        // ----------------------------------------------------------------
        // setup your test
        // our $st object
        $i = new Injectables();
        $i->initOutputSupport();
        $i->initDataFormatterSupport();
        $i->initRuntimeConfigSupport($i);
        $st = new StoryTeller($i);
        // our test subject
        $obj = new SshClient($st);
        // what are the default options?
        $expectedOptions = $obj->getDefaultSshOptions();
        // ----------------------------------------------------------------
        // perform the change
        $actualOptions = $obj->getSshOptions();
        // ----------------------------------------------------------------
        // test the results
        $this->assertTrue(is_array($actualOptions));
        $this->assertEquals($expectedOptions, $actualOptions);
    }