/** * @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); }