Skip to content

Commit 276afa1

Browse files
authored
Merge pull request #30 from magento-commerce/develop
develop to 1.10.x sync
2 parents 2d7c0b3 + 0400562 commit 276afa1

File tree

6 files changed

+21
-23
lines changed

6 files changed

+21
-23
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- "8.1"
1818
- "8.2"
1919
- "8.3"
20+
- "8.4"
2021
dependencies:
2122
- "lowest"
2223
- "highest"

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
"name": "magento/composer",
33
"description": "Magento composer library helps to instantiate Composer application and run composer commands.",
44
"type": "library",
5-
"version": "1.10.0",
5+
"version": "1.10.1-beta1",
66
"license": [
77
"OSL-3.0",
88
"AFL-3.0"
99
],
1010
"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",
1313
"symfony/console": "~4.4.0||~5.4.0||~6.4.0"
1414
},
1515
"require-dev": {
16-
"phpunit/phpunit": "^9"
16+
"phpunit/phpunit": "^9.5.10 || ^10"
1717
},
1818
"autoload": {
1919
"psr-4": {

phpunit.xml.dist

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<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"
54
backupGlobals="false"
65
colors="true"
7-
bootstrap="vendor/autoload.php"
8-
>
6+
bootstrap="vendor/autoload.php">
97
<php>
10-
<ini name="error_reporting" value="-1" />
8+
<ini name="error_reporting" value="-1"/>
119
</php>
12-
1310
<testsuites>
1411
<testsuite name="Magento Composer Library Test">
1512
<directory>./tests/</directory>
1613
</testsuite>
1714
</testsuites>
18-
19-
<filter>
20-
<whitelist>
15+
<source>
16+
<include>
2117
<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>
2723
</phpunit>

src/MagentoComposerApplication.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ class MagentoComposerApplication
6565
public function __construct(
6666
$pathToComposerHome,
6767
$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
7171
) {
7272
$this->consoleApplication = $consoleApplication ? $consoleApplication : new Application();
7373
$this->consoleArrayInputFactory = $consoleArrayInputFactory ? $consoleArrayInputFactory

tests/Composer/InfoCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testRunInstalled()
7474
*
7575
* @return array
7676
*/
77-
public function getCommandOutputDataProvider()
77+
public static function getCommandOutputDataProvider()
7878
{
7979
return [
8080
'Package not installed' => [

tests/Composer/MagentoComposerApplicationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class MagentoComposerApplicationTest extends \PHPUnit\Framework\TestCase
3434

3535
protected function setUp(): void
3636
{
37-
$this->composerApplication = $this->createMock(\Composer\Console\Application::class);
37+
$this->composerApplication = $this->getMockBuilder('Composer\Console\Application')
38+
->getMock();
3839
$this->inputFactory = $this->createMock(\Magento\Composer\ConsoleArrayInputFactory::class);
3940
$this->consoleOutput = $this->createMock(\Symfony\Component\Console\Output\BufferedOutput::class);
4041

0 commit comments

Comments
 (0)