File tree Expand file tree Collapse file tree 6 files changed +21
-23
lines changed Expand file tree Collapse file tree 6 files changed +21
-23
lines changed Original file line number Diff line number Diff line change 17
17
- " 8.1"
18
18
- " 8.2"
19
19
- " 8.3"
20
+ - " 8.4"
20
21
dependencies :
21
22
- " lowest"
22
23
- " highest"
Original file line number Diff line number Diff line change 2
2
"name" : " magento/composer" ,
3
3
"description" : " Magento composer library helps to instantiate Composer application and run composer commands." ,
4
4
"type" : " library" ,
5
- "version" : " 1.10.0 " ,
5
+ "version" : " 1.10.1-beta1 " ,
6
6
"license" : [
7
7
" OSL-3.0" ,
8
8
" AFL-3.0"
9
9
],
10
10
"require" : {
11
- "php" : " ~7.4.0||~8.1.0||~8.2.0||~8.3.0" ,
12
- "composer/composer" : " ^2.0 " ,
11
+ "php" : " ~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0 " ,
12
+ "composer/composer" : " ^2.1.13 " ,
13
13
"symfony/console" : " ~4.4.0||~5.4.0||~6.4.0"
14
14
},
15
15
"require-dev" : {
16
- "phpunit/phpunit" : " ^9"
16
+ "phpunit/phpunit" : " ^9.5.10 || ^10 "
17
17
},
18
18
"autoload" : {
19
19
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
-
3
2
<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
- xsi : noNamespaceSchemaLocation =" http ://schema.phpunit.de/9.1 /phpunit.xsd"
3
+ xsi : noNamespaceSchemaLocation =" https ://schema.phpunit.de/10.5 /phpunit.xsd"
5
4
backupGlobals =" false"
6
5
colors =" true"
7
- bootstrap =" vendor/autoload.php"
8
- >
6
+ bootstrap =" vendor/autoload.php" >
9
7
<php >
10
- <ini name =" error_reporting" value =" -1" />
8
+ <ini name =" error_reporting" value =" -1" />
11
9
</php >
12
-
13
10
<testsuites >
14
11
<testsuite name =" Magento Composer Library Test" >
15
12
<directory >./tests/</directory >
16
13
</testsuite >
17
14
</testsuites >
18
-
19
- <filter >
20
- <whitelist >
15
+ <source >
16
+ <include >
21
17
<directory >./</directory >
22
- < exclude >
23
- < directory >./tests</ directory >
24
- </ exclude >
25
- </whitelist >
26
- </filter >
18
+ </ include >
19
+ < exclude >
20
+ <directory >./tests</ directory >
21
+ </exclude >
22
+ </source >
27
23
</phpunit >
Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ class MagentoComposerApplication
65
65
public function __construct (
66
66
$ pathToComposerHome ,
67
67
$ pathToComposerJson ,
68
- Application $ consoleApplication = null ,
69
- ConsoleArrayInputFactory $ consoleArrayInputFactory = null ,
70
- BufferedOutput $ consoleOutput = null
68
+ ? Application $ consoleApplication = null ,
69
+ ? ConsoleArrayInputFactory $ consoleArrayInputFactory = null ,
70
+ ? BufferedOutput $ consoleOutput = null
71
71
) {
72
72
$ this ->consoleApplication = $ consoleApplication ? $ consoleApplication : new Application ();
73
73
$ this ->consoleArrayInputFactory = $ consoleArrayInputFactory ? $ consoleArrayInputFactory
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function testRunInstalled()
74
74
*
75
75
* @return array
76
76
*/
77
- public function getCommandOutputDataProvider ()
77
+ public static function getCommandOutputDataProvider ()
78
78
{
79
79
return [
80
80
'Package not installed ' => [
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ class MagentoComposerApplicationTest extends \PHPUnit\Framework\TestCase
34
34
35
35
protected function setUp (): void
36
36
{
37
- $ this ->composerApplication = $ this ->createMock (\Composer \Console \Application::class);
37
+ $ this ->composerApplication = $ this ->getMockBuilder ('Composer\Console\Application ' )
38
+ ->getMock ();
38
39
$ this ->inputFactory = $ this ->createMock (\Magento \Composer \ConsoleArrayInputFactory::class);
39
40
$ this ->consoleOutput = $ this ->createMock (\Symfony \Component \Console \Output \BufferedOutput::class);
40
41
You can’t perform that action at this time.
0 commit comments