File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,15 +59,10 @@ public function test__invoke() : void {
5959 $ this ->sut ->hostCheck = $ this ->createMock (iHostCheck::class);
6060 $ this ->sut ->hostCheck ->expects (self ::once ())->method ('check ' );
6161
62- $ this ->sut ->deployerFunctions = $ this ->createMock (iUpload::class);
63- $ this ->sut ->deployerFunctions
64- ->expects (self ::exactly (3 ))
65- ->method ('upload ' )
66- ->withConsecutive (
67- ['local1 ' , 'remote1 ' , ['config1 ' ]],
68- ['local2 ' , 'remote2 ' , ['config2 ' ]],
69- ['local3 ' , 'remote3 ' , ['config3 ' ]],
70- );
62+ $ this ->sut ->deployerFunctions = \Mockery::mock (iUpload::class);
63+ $ this ->sut ->deployerFunctions ->allows ('upload ' )->once ()->ordered ()->with ('local1 ' , 'remote1 ' , ['config1 ' ]);
64+ $ this ->sut ->deployerFunctions ->allows ('upload ' )->once ()->ordered ()->with ('local2 ' , 'remote2 ' , ['config2 ' ]);
65+ $ this ->sut ->deployerFunctions ->allows ('upload ' )->once ()->ordered ()->with ('local3 ' , 'remote3 ' , ['config3 ' ]);
7166
7267 $ this ->sut ->__invoke ();
7368 }
You can’t perform that action at this time.
0 commit comments