Skip to content

Commit af36703

Browse files
authored
Bump dependencies (#76)
- Drop support for Composer 1.x - Drop support for PHP <7.2.5 (like Composer 2.3)
1 parent d917dca commit af36703

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
composer.lock
22
vendor
33
vendor-bin/*/vendor
4+
.phpunit.result.cache

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
],
1313
"license": "MIT",
1414
"require": {
15-
"php": "^5.5.9 || ^7.0 || ^8.0",
16-
"composer-plugin-api": "^1.0 || ^2.0"
15+
"php": "^7.2.5 || ^8.0",
16+
"composer-plugin-api": "^2.0"
1717
},
1818
"require-dev": {
19-
"composer/composer": "^1.0 || ^2.0",
19+
"composer/composer": "^2.0",
2020
"phpstan/extension-installer": "^1.1",
21-
"symfony/console": "^2.5 || ^3.0 || ^4.0"
21+
"symfony/console": "^5.4.7 || ^6.0.7"
2222
},
2323
"config": {
2424
"sort-packages": true,

tests/BinCommandTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
use Composer\Console\Application;
66
use Bamarni\Composer\Bin\BinCommand;
77
use Bamarni\Composer\Bin\Tests\Fixtures\MyTestCommand;
8+
use PHPUnit\Framework\TestCase;
89
use Symfony\Component\Console\Input\StringInput;
910
use Symfony\Component\Console\Output\NullOutput;
1011

11-
class BinCommandTest extends \PHPUnit_Framework_TestCase
12+
class BinCommandTest extends TestCase
1213
{
1314
private $application;
1415
private $myTestCommand;
1516
private $rootDir;
1617

17-
protected function setUp()
18+
protected function setUp(): void
1819
{
1920
$this->rootDir = sys_get_temp_dir().'/'.uniqid('composer_bin_plugin_tests_');
2021
mkdir($this->rootDir);
@@ -29,7 +30,7 @@ protected function setUp()
2930
]);
3031
}
3132

32-
public function tearDown()
33+
public function tearDown(): void
3334
{
3435
putenv('COMPOSER_BIN_DIR');
3536
$this->myTestCommand->data = [];

tests/Fixtures/MyTestCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Bamarni\Composer\Bin\Tests\Fixtures;
44

5+
use PHPUnit\Framework\Assert;
56
use Symfony\Component\Console\Input\InputInterface;
67
use Symfony\Component\Console\Input\InputOption;
78
use Symfony\Component\Console\Output\OutputInterface;
@@ -15,7 +16,7 @@ class MyTestCommand extends BaseCommand
1516

1617
private $assert;
1718

18-
public function __construct(\PHPUnit_Framework_Assert $assert)
19+
public function __construct(Assert $assert)
1920
{
2021
$this->assert = $assert;
2122

vendor-bin/phpunit/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require": {
3-
"phpunit/phpunit": "^4.8||^5.0"
3+
"phpunit/phpunit": "^8.5 || ^9.5"
44
}
55
}

0 commit comments

Comments
 (0)