Skip to content

Commit

Permalink
Merge pull request #30 from magento-commerce/develop
Browse files Browse the repository at this point in the history
develop to 1.10.x sync
  • Loading branch information
sidolov authored Jan 7, 2025
2 parents 2d7c0b3 + 0400562 commit 276afa1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 23 deletions.
1 change: 1 addition & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
dependencies:
- "lowest"
- "highest"
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "magento/composer",
"description": "Magento composer library helps to instantiate Composer application and run composer commands.",
"type": "library",
"version": "1.10.0",
"version": "1.10.1-beta1",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"php": "~7.4.0||~8.1.0||~8.2.0||~8.3.0",
"composer/composer": "^2.0",
"php": "~7.4.0||~8.1.0||~8.2.0||~8.3.0||~8.4.0",
"composer/composer": "^2.1.13",
"symfony/console": "~4.4.0||~5.4.0||~6.4.0"
},
"require-dev": {
"phpunit/phpunit": "^9"
"phpunit/phpunit": "^9.5.10 || ^10"
},
"autoload": {
"psr-4": {
Expand Down
24 changes: 10 additions & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.1/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
>
bootstrap="vendor/autoload.php">
<php>
<ini name="error_reporting" value="-1" />
<ini name="error_reporting" value="-1"/>
</php>

<testsuites>
<testsuite name="Magento Composer Library Test">
<directory>./tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<source>
<include>
<directory>./</directory>
<exclude>
<directory>./tests</directory>
</exclude>
</whitelist>
</filter>
</include>
<exclude>
<directory>./tests</directory>
</exclude>
</source>
</phpunit>
6 changes: 3 additions & 3 deletions src/MagentoComposerApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ class MagentoComposerApplication
public function __construct(
$pathToComposerHome,
$pathToComposerJson,
Application $consoleApplication = null,
ConsoleArrayInputFactory $consoleArrayInputFactory = null,
BufferedOutput $consoleOutput = null
?Application $consoleApplication = null,
?ConsoleArrayInputFactory $consoleArrayInputFactory = null,
?BufferedOutput $consoleOutput = null
) {
$this->consoleApplication = $consoleApplication ? $consoleApplication : new Application();
$this->consoleArrayInputFactory = $consoleArrayInputFactory ? $consoleArrayInputFactory
Expand Down
2 changes: 1 addition & 1 deletion tests/Composer/InfoCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function testRunInstalled()
*
* @return array
*/
public function getCommandOutputDataProvider()
public static function getCommandOutputDataProvider()
{
return [
'Package not installed' => [
Expand Down
3 changes: 2 additions & 1 deletion tests/Composer/MagentoComposerApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class MagentoComposerApplicationTest extends \PHPUnit\Framework\TestCase

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

Expand Down

0 comments on commit 276afa1

Please sign in to comment.