public function testProvidesBackwardsCompatibility()
 {
     $input = array('foo' => 'bar', 'user' => 'espenh');
     $output = PublicKeyFallback::fallback($input);
     $this->assertSame('espenh', $output['user']);
     $this->assertSame('espenh', $output['publicKey']);
 }
Пример #2
0
 /**
  * Fetch the user info of the current user
  *
  * @return Model
  */
 public function getUserInfo()
 {
     $userInfo = $this->getCommand('GetUserInfo', array('user' => $this->getUser()))->execute();
     return PublicKeyFallback::fallback($userInfo);
 }