Esempio n. 1
0
 /**
  * Guards the there are no units of work in the history repository that are not
  * also in the source repository
  *
  * @throws Exception\HistoryHasSourceUnknownUnitsOfWorkException
  * @throws Exception\UnitIsAlreadyPresentException
  */
 private function guardThatHistoryRepositoryDoesNotHaveMoreUnitsOfWork()
 {
     $historyDiffRepository = $this->historyRepository->diff($this->sourceRepository);
     if (0 < $historyDiffRepository->count()) {
         throw new HistoryHasSourceUnknownUnitsOfWorkException();
     }
 }