11
11
12
12
final class CombinedSpec extends ObjectBehavior
13
13
{
14
- function let (Dictionary $ dictionary1 , Dictionary $ dictionary2 , Dictionary $ dictionary3 )
15
- {
14
+ function let (
15
+ Dictionary $ dictionary1 ,
16
+ Dictionary $ dictionary2 ,
17
+ Dictionary $ dictionary3
18
+ ) {
16
19
$ this ->beConstructedWith (
17
20
'combined_dictionary ' ,
18
21
$ dictionary1 ,
@@ -31,8 +34,11 @@ function it_is_a_dictionary()
31
34
$ this ->shouldImplement (Dictionary::class);
32
35
}
33
36
34
- function it_access_to_value_like_an_array ($ dictionary1 , $ dictionary2 , $ dictionary3 )
35
- {
37
+ function it_access_to_value_like_an_array (
38
+ $ dictionary1 ,
39
+ $ dictionary2 ,
40
+ $ dictionary3
41
+ ) {
36
42
$ dictionary1 ->getIterator ()->willReturn (new ArrayIterator (['foo1 ' => 'foo10 ' ]));
37
43
38
44
$ dictionary2 ->getIterator ()->willReturn (new ArrayIterator (['bar1 ' => 'bar10 ' ]));
@@ -44,8 +50,11 @@ function it_access_to_value_like_an_array($dictionary1, $dictionary2, $dictionar
44
50
$ this ['baz1 ' ]->shouldBe ('baz10 ' );
45
51
}
46
52
47
- function it_getvalues_should_return_dictionaries_values ($ dictionary1 , $ dictionary2 , $ dictionary3 )
48
- {
53
+ function it_getvalues_should_return_dictionaries_values (
54
+ $ dictionary1 ,
55
+ $ dictionary2 ,
56
+ $ dictionary3
57
+ ) {
49
58
$ dictionary1 ->getIterator ()->willReturn (new ArrayIterator ([
50
59
'foo1 ' => 'foo10 ' ,
51
60
'foo2 ' => 'foo20 ' ,
@@ -75,8 +84,11 @@ function it_getvalues_should_return_dictionaries_values($dictionary1, $dictionar
75
84
]);
76
85
}
77
86
78
- function it_can_iterate_over_dictionaries ($ dictionary1 , $ dictionary2 , $ dictionary3 )
79
- {
87
+ function it_can_iterate_over_dictionaries (
88
+ $ dictionary1 ,
89
+ $ dictionary2 ,
90
+ $ dictionary3
91
+ ) {
80
92
$ dictionary1 ->getIterator ()->willReturn (new ArrayIterator ([
81
93
'foo1 ' => 'foo10 ' ,
82
94
'foo2 ' => 'foo20 ' ,
@@ -100,8 +112,11 @@ function it_can_iterate_over_dictionaries($dictionary1, $dictionary2, $dictionar
100
112
]);
101
113
}
102
114
103
- function it_sums_the_count_of_elements ($ dictionary1 , $ dictionary2 , $ dictionary3 )
104
- {
115
+ function it_sums_the_count_of_elements (
116
+ $ dictionary1 ,
117
+ $ dictionary2 ,
118
+ $ dictionary3
119
+ ) {
105
120
$ dictionary1 ->getIterator ()->willReturn (new ArrayIterator ([
106
121
'foo1 ' => 'foo10 ' ,
107
122
]));
0 commit comments