| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function testNewCandidateValues() |
||
| 10 | { |
||
| 11 | $id = 12; |
||
| 12 | $candidate = new Candidate($id); |
||
| 13 | $this->assertEquals($candidate->getId(), 12); |
||
| 14 | $this->assertEquals($candidate->getVotes(), 0.0); |
||
| 15 | $this->assertEquals($candidate->getSurplus(), 0.0); |
||
| 16 | $this->assertEquals($candidate->getState(), Candidate::RUNNING); |
||
| 17 | } |
||
| 18 | } |
||
| 19 |