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

testStartsWithStdinAttachedToDevNull() public method

    public function testStartsWithStdinAttachedToDevNull()
    {
        // ----------------------------------------------------------------
        // setup your test
        // our $st object
        $i = new Injectables();
        $i->initOutputSupport();
        $i->initDataFormatterSupport();
        $i->initRuntimeConfigSupport($i);
        $st = new StoryTeller($i);
        // our expected results
        $expectedOptions = ["-o StrictHostKeyChecking=no", "-n"];
        // our test subject
        $obj = new SshClient($st);
        // ----------------------------------------------------------------
        // perform the change
        $actualOptions = $obj->getSshOptions();
        // ----------------------------------------------------------------
        // test the results
        $this->assertEquals($expectedOptions, $actualOptions);
    }