コード例 #1
0
 public function itThrowsAnExceptionIfGerritPushFails()
 {
     expect($this->gerrit_user_account_manager)->pushSSHKeys()->once();
     $this->gerrit_user_account_manager->throwOn('pushSSHKeys', new Git_UserSynchronisationException());
     $this->expectException('Git_UserSynchronisationException');
     $this->user_account_manager->pushSSHKeys($this->user);
 }