Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 8 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
29 | function it_should_be_hydrated() |
||
30 | { |
||
31 | $this->getId()->shouldReturn(11); |
||
32 | $this->getName()->shouldReturn('Simple call'); |
||
33 | $this->getPhoneDid()->shouldReturn('+1 343 553 22 33'); |
||
34 | $this->getPhoneDestination()->shouldReturn('+1 233 211 21 77'); |
||
35 | $this->hasCallerId()->shouldReturn(true); |
||
36 | } |
||
37 | } |
||
38 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.