public function testHasNomAndPrenomAndElection() { $echeance = new Echeance(new \DateTime(), Echeance::CANTONALES); $circonscription = new TerritoireMock(); $election = new ElectionMock($echeance, $circonscription); $personneCandidate = new PersonneCandidate($election, 'FG', 'Naël', 'Ferret'); $this->assertEquals('FG', $personneCandidate->getNuance()); $this->assertEquals('Naël Ferret', (string) $personneCandidate); $this->assertEquals($election, $personneCandidate->getElection()); }