__toString() публичный Метод

public __toString ( )
Пример #1
0
 /**
  * @test
  */
 public function withJumpHost()
 {
     $jumpHost = new Instance(['Tags' => [], 'PrivateIpAddress' => '4.5.7.6']);
     $connection = new Connection('TestUsername', '1.2.3.4', null, $jumpHost);
     $this->assertEquals('ssh -o ProxyCommand="ssh -o ConnectTimeout=5 -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ec2-user@4.5.7.6 \'nc %h %p\'" -o ConnectTimeout=5 -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null TestUsername@1.2.3.4', $connection->__toString());
 }