public function itThrowsAProjectDeletionExceptionIfThereAreOpenChanges() { $exception = new Git_Driver_Gerrit_RemoteSSHCommandFailure(1, '', 'error'); stub($this->ssh)->execute()->throws($exception); $this->expectException('ProjectDeletionException'); $this->driver->deleteProject($this->gerrit_server, 'project'); }