Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | final class PriceNameResolverSpec extends ObjectBehavior |
||
20 | { |
||
21 | function let(): void |
||
|
|||
22 | { |
||
23 | $this->beConstructedWith('price'); |
||
24 | } |
||
25 | |||
26 | function it_is_initializable(): void |
||
27 | { |
||
28 | $this->shouldHaveType(PriceNameResolver::class); |
||
29 | } |
||
30 | |||
31 | function it_implements_price_name_resolver_interface(): void |
||
32 | { |
||
33 | $this->shouldHaveType(PriceNameResolverInterface::class); |
||
34 | } |
||
35 | |||
36 | function it_resolves_min_price_name(): void |
||
39 | } |
||
40 | |||
41 | function it_resolves_max_price_name(): void |
||
44 | } |
||
45 | } |
||
46 |
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.