/**
  * @test
  */
 public function removeQuestionWorks()
 {
     $exercise = new MultipleChoiceSameAnswerExercise();
     $question = new MultipleChoiceQuestion();
     $question->setText('Question A');
     $rightAnswer = new MultipleChoicePossibleAnswer();
     $rightAnswer->setNumber(0);
     $rightAnswer->setText('Answer 1');
     $rightAnswer->setIsCorrectAnswer(true);
     $question->addPossibleAnswer($rightAnswer);
     $wrongAnswer = new MultipleChoicePossibleAnswer();
     $wrongAnswer->setNumber(1);
     $wrongAnswer->setText('Answer 2');
     $wrongAnswer->setIsCorrectAnswer(false);
     $question->addPossibleAnswer($wrongAnswer);
     $exercise->addQuestion($question);
     $exercise->removeQuestion($question);
     $this->assertEquals(0, $exercise->getMaxScore());
 }