| Total Complexity | 4 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class CombinedSpec extends ObjectBehavior |
||
| 12 | { |
||
| 13 | use DictionaryBehavior; |
||
| 14 | |||
| 15 | function let() |
||
|
|
|||
| 16 | { |
||
| 17 | $this->beConstructedWith( |
||
| 18 | 'combined_dictionary', |
||
| 19 | new Dictionary\Simple( |
||
| 20 | 'dictionary1', |
||
| 21 | [ |
||
| 22 | 'foo' => 1, |
||
| 23 | 'bar' => 2, |
||
| 24 | ] |
||
| 25 | ), |
||
| 26 | new Dictionary\Simple( |
||
| 27 | 'dictionary2', |
||
| 28 | [ |
||
| 29 | 'bar' => 3, |
||
| 30 | 'baz' => 4, |
||
| 31 | ] |
||
| 32 | ), |
||
| 33 | new Dictionary\Simple( |
||
| 34 | 'dictionary3', |
||
| 35 | [ |
||
| 36 | 'baz' => 5, |
||
| 37 | ] |
||
| 38 | ), |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 42 | function it_is_initializable() |
||
| 45 | } |
||
| 46 | |||
| 47 | protected function getExpectedResult(): array |
||
| 48 | { |
||
| 49 | return [ |
||
| 50 | 'foo' => 1, |
||
| 51 | 'bar' => 3, |
||
| 52 | 'baz' => 5, |
||
| 53 | ]; |
||
| 54 | } |
||
| 55 | |||
| 56 | protected function getExpectedName(): string |
||
| 59 | } |
||
| 60 | } |
||
| 61 |
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.