Jordi Boggiano
6a466a120a
Enable strict types on all files
2022-02-24 13:24:34 +01:00
Jordi Boggiano
3cdca37e85
Fix strict type issues
2022-02-24 13:24:25 +01:00
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2022-02-22 16:48:53 +01:00
Jordi Boggiano
abdc6893a6
Add void types where no return statement is present
2022-02-18 10:38:54 +01:00
Jordi Boggiano
86fb8d4412
Fix CS
2022-02-18 08:50:11 +01:00
Jordi Boggiano
5c98a2cf8e
Add phpstan-symfony to get type info about console InputInterface, fix many errors ( #10476 )
...
Extract common init/require commands functionality into PackageDiscoveryTrait
Extract some helper methods into BaseCommand for better types
2022-02-16 13:24:57 +01:00
Jordi Boggiano
ffd62795bc
Get rid of all the ->at() mock invocations
2022-01-01 14:54:20 +01:00
Jordi Boggiano
2a771dfb2d
Update PHPUnit to 8.5
2022-01-01 14:54:19 +01:00
Jordi Boggiano
8f1b3d21db
Add --no-scripts to all commands and disable plugins/scripts when running self-update ( #10371 )
...
* Add --no-scripts as global parameter available to all commands, and handle it by default when creating a Composer instance from Command::getComposer
* Disable scripts/plugins for self-update command, fixes #10351
2021-12-20 14:23:35 +01:00
Jordi Boggiano
cb0293cf30
Finalize phpstan level 6 for tests dir, closes #10159
2021-11-02 14:32:09 +01:00
Jordi Boggiano
91dd175f74
Fix env var handling when variables_order includes E and symfony/console 3.3.15+ is used, fixes #9930
2021-06-03 10:17:54 +02:00
John Stevenson
c3b76a8532
Upgrade to xdebug-handler 2 ( #9832 )
...
This adds support for Xdebug3 modes and changes the default behaviour
from always restarting if Xdebug is loaded, to only restarting if Xdebug
is active.
Xdebug is considered active if it is loaded, and for Xdebug3, if it is
running in a mode other than `xdebug.mode=off`.
2021-04-13 09:59:06 +02:00
Jordi Boggiano
d8a5db4cbb
Fix tests
2021-01-12 14:59:21 +01:00
Jordi Boggiano
b7d770659b
CS fixes
2020-11-22 14:52:39 +01:00
Ion Bazan
db32d6bc18
do not use env
2020-02-07 13:07:01 +08:00
Andreas Möller
f7f7883a5e
Fix: Xdebug vs xdebug
2019-11-03 14:08:14 +01:00
Jordi Boggiano
a403ee9b0e
Fix tests for reals
2019-08-29 15:23:58 +02:00
Jordi Boggiano
6fee17f16c
Fix tests, refs #8292
2019-08-29 15:09:26 +02:00
Jordi Boggiano
b7d1f87848
Fix tests
2019-01-28 15:44:21 +01:00
Gabriel Caruso
2a13bb2649
Fixes from PHPStan ( #7687 )
...
* fix docblocks
* remove redundant conditional
* fix wrong variable name
* fix wrong namespaces
* add missing private members
* remove unused/redundant arguments
* move testcase class
* exclude TestCase.php
* Tweak RuleWatchGraph type hints
* Tweak doc comment
2018-11-12 15:23:32 +01:00
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
2018-04-12 10:24:56 +02:00
Jordi Boggiano
f420d31233
Fix application test
2017-08-08 10:43:26 +02:00
Jordi Boggiano
066550054b
Fix tests
2016-07-12 17:12:50 +01:00
Jordi Boggiano
cc793eff6f
Clean up ApplicationTest
2016-05-06 00:28:45 +01:00
Jordi Boggiano
591cbcee12
Avoiding defining plugin commands using the local project plugins, refs #5277
2016-05-05 14:10:06 +01:00
Bilal Amarni
92207da83a
add isProxyCommand() to BaseCommand
2016-05-05 13:56:44 +01:00
Jordi Boggiano
b10074338c
Fix tests
2016-04-18 22:17:04 +01:00
Jordi Boggiano
49d7d65933
Add verbosity input support to IOInterface
2016-01-29 10:14:12 +00:00
Jordi Boggiano
cf6cd83335
Use writeError for xdebug warning and fix running test suite with xdebug
2015-11-19 17:37:32 +00:00
Jordi Boggiano
ebffb3c179
Move improvements towards reproducible builds, refs #3927
2015-05-01 11:54:55 +01:00
Rob Bast
cb336a5416
Implement writeError throughout Composer
2015-02-25 11:00:35 +01:00
Craig Duncan
647625ddc5
Added some tests for the dev version warning
2014-11-20 18:27:58 +00:00