DataSift\Storyplayer\CommandLib\SshClient::getSshOptions PHP Method

getSshOptions() public method

public getSshOptions ( ) : array
return array
    public function getSshOptions()
    {
        return $this->sshOptions;
    }

Usage Example

Esempio n. 1
0
 /**
  * @covers DataSift\Storyplayer\CommandLib\SshClient::getSshOptions
  */
 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);
 }