| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class ItemSpec extends ObjectBehavior |
||
| 10 | { |
||
| 11 | function let(): void |
||
|
|
|||
| 12 | { |
||
| 13 | $this->beConstructedWith( |
||
| 14 | 'Super cars', |
||
| 15 | 'McLaren F1', |
||
| 16 | 'Very quirky super-car', |
||
| 17 | '/mc-laren/f1', |
||
| 18 | '$22,000,000.00', |
||
| 19 | '' |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | |||
| 23 | function it_returns_an_array(): void |
||
| 32 | ]); |
||
| 33 | } |
||
| 34 | |||
| 35 | function it_returns_values(): void |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.