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()
134134 )
135135 );
136136
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 (){
137150 $ this ->patchBuilder ->expects ($ this ->exactly (3 ))
138151 ->method ('setType ' )
139152 ->with (
@@ -193,12 +206,6 @@ public function testCollectSuccessful()
193206 $ this ->equalTo (true )
194207 )
195208 );
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 ()));
202209 }
203210
204211
You can’t perform that action at this time.
0 commit comments