/**
* @covers DataSift\Storyplayer\CommandLib\SshClient::getIpAddress
* @covers DataSift\Storyplayer\CommandLib\SshClient::hasIpAddress
* @covers DataSift\Storyplayer\CommandLib\SshClient::setIpAddress
*/
public function testCanGetAndSetTargetIpAddress()
{
// ----------------------------------------------------------------
// 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);
// the IP address to use
$expectedIpAddress = '192.168.1.5';
// make sure we're starting with no IP address
$this->assertFalse($obj->hasIpAddress());
// ----------------------------------------------------------------
// perform the change
$obj->setIpAddress($expectedIpAddress);
$actualIpAddress = $obj->getIpAddress();
// ----------------------------------------------------------------
// test the results
$this->assertEquals($expectedIpAddress, $actualIpAddress);
$this->assertTrue($obj->hasIpAddress());
}