public function testIGetARedNarrative()
 {
     $expectedNarrative = array('about_you' => array("about_you_red", "who_depends_on_you_red", "about_you_hindrance_red_none", "about_you_red_closing"));
     $questionnaire = new Questionnaire(new Person());
     $questionnaire->getAboutYou()->getHindrances()->setNotRelevant(true)->setCompletedDate(new \DateTime());
     $questionnaire->getAboutYou()->getMotivations()->setCompletedDate(new \DateTime());
     $questionnaire->getAboutYou()->getDependants()->setPets(true)->setCompletedDate(new \DateTime());
     $questionnaire->getAboutYou()->getFeelings()->setEnergy(10)->setMood(10)->setWeight(10)->setCompletedDate(new \DateTime());
     $narrative = $this->instance->buildNarrative($questionnaire);
     $this->assertEquals($expectedNarrative, $narrative->getMessages());
 }
 /**
  * @param Questionnaire $questionnaire
  */
 protected function buildAboutYouNarrative(Questionnaire $questionnaire)
 {
     if (AboutYouSpecification::isSatisfiedBy($questionnaire)) {
         $abnb = new AboutYouNarrativeBuilder();
         $narrative = $abnb->buildNarrative($questionnaire);
         $this->narrative->merge($narrative);
     }
 }