File tree Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 11composer.lock
22vendor
33vendor-bin /* /vendor
4+ .phpunit.result.cache
Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff line change 55use Composer \Console \Application ;
66use Bamarni \Composer \Bin \BinCommand ;
77use Bamarni \Composer \Bin \Tests \Fixtures \MyTestCommand ;
8+ use PHPUnit \Framework \TestCase ;
89use Symfony \Component \Console \Input \StringInput ;
910use 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 = [];
Original file line number Diff line number Diff line change 22
33namespace Bamarni \Composer \Bin \Tests \Fixtures ;
44
5+ use PHPUnit \Framework \Assert ;
56use Symfony \Component \Console \Input \InputInterface ;
67use Symfony \Component \Console \Input \InputOption ;
78use 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
Original file line number Diff line number Diff line change 11{
22 "require" : {
3- "phpunit/phpunit" : " ^4.8||^5.0 "
3+ "phpunit/phpunit" : " ^8.5 || ^9.5 "
44 }
55}
You can’t perform that action at this time.
0 commit comments