@@ -11,7 +11,13 @@ class DependencyCheckerTest extends \PHPUnit_Framework_TestCase
11
11
{
12
12
public function testCheckDependencies ()
13
13
{
14
- $ composerApp = $ this ->getMock ('Composer\Console\Application ' , [], [], '' , false );
14
+ $ composerApp = $ this ->getMock (
15
+ 'Composer\Console\Application ' ,
16
+ ['setAutoExit ' , 'resetComposer ' , 'run ' ],
17
+ [],
18
+ '' ,
19
+ false
20
+ );
15
21
$ directoryList = $ this ->getMock ('Magento\Framework\App\Filesystem\DirectoryList ' , [], [], '' , false );
16
22
$ directoryList ->expects ($ this ->exactly (2 ))->method ('getRoot ' );
17
23
$ composerApp ->expects ($ this ->once ())->method ('setAutoExit ' )->with (false );
@@ -44,7 +50,13 @@ function ($input, $buffer) {
44
50
45
51
public function testCheckDependenciesExcludeSelf ()
46
52
{
47
- $ composerApp = $ this ->getMock ('Composer\Console\Application ' , [], [], '' , false );
53
+ $ composerApp = $ this ->getMock (
54
+ 'Composer\Console\Application ' ,
55
+ ['setAutoExit ' , 'resetComposer ' , 'run ' ],
56
+ [],
57
+ '' ,
58
+ false
59
+ );
48
60
$ directoryList = $ this ->getMock ('Magento\Framework\App\Filesystem\DirectoryList ' , [], [], '' , false );
49
61
$ directoryList ->expects ($ this ->exactly (3 ))->method ('getRoot ' );
50
62
$ composerApp ->expects ($ this ->once ())->method ('setAutoExit ' )->with (false );
0 commit comments