File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121use de \codenamephp \deployer \base \hostCheck \iHostCheck ;
2222use de \codenamephp \deployer \base \task \media \Push ;
2323use de \codenamephp \deployer \base \transferable \iTransferable ;
24+ use Mockery ;
25+ use Mockery \Adapter \Phpunit \MockeryPHPUnitIntegration ;
2426use PHPUnit \Framework \TestCase ;
2527
2628final class PushTest extends TestCase {
2729
30+ use MockeryPHPUnitIntegration;
31+
2832 private Push $ sut ;
2933
3034 protected function setUp () : void {
@@ -59,7 +63,7 @@ public function test__invoke() : void {
5963 $ this ->sut ->hostCheck = $ this ->createMock (iHostCheck::class);
6064 $ this ->sut ->hostCheck ->expects (self ::once ())->method ('check ' );
6165
62- $ this ->sut ->deployerFunctions = \ Mockery::mock (iUpload::class);
66+ $ this ->sut ->deployerFunctions = Mockery::mock (iUpload::class);
6367 $ this ->sut ->deployerFunctions ->allows ('upload ' )->once ()->ordered ()->with ('local1 ' , 'remote1 ' , ['config1 ' ]);
6468 $ this ->sut ->deployerFunctions ->allows ('upload ' )->once ()->ordered ()->with ('local2 ' , 'remote2 ' , ['config2 ' ]);
6569 $ this ->sut ->deployerFunctions ->allows ('upload ' )->once ()->ordered ()->with ('local3 ' , 'remote3 ' , ['config3 ' ]);
You can’t perform that action at this time.
0 commit comments