File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
src/Test/Unit/Patch/Collector Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,19 @@ public function testCollectSuccessful()
134
134
)
135
135
);
136
136
137
+ $ this ->PatchBuildertest ();
138
+
139
+ $ this ->patchBuilder ->expects ($ this ->exactly (3 ))
140
+ ->method ('build ' )
141
+ ->willReturn ($ this ->createMock (Patch::class));
142
+
143
+ $ this ->assertTrue (is_array ($ this ->collector ->collect ()));
144
+ }
145
+
146
+ /**
147
+ * patchBuilder function
148
+ */
149
+ public function PatchBuildertest (){
137
150
$ this ->patchBuilder ->expects ($ this ->exactly (3 ))
138
151
->method ('setType ' )
139
152
->with (
@@ -193,12 +206,6 @@ public function testCollectSuccessful()
193
206
$ this ->equalTo (true )
194
207
)
195
208
);
196
-
197
- $ this ->patchBuilder ->expects ($ this ->exactly (3 ))
198
- ->method ('build ' )
199
- ->willReturn ($ this ->createMock (Patch::class));
200
-
201
- $ this ->assertTrue (is_array ($ this ->collector ->collect ()));
202
209
}
203
210
204
211
You can’t perform that action at this time.
0 commit comments