mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Unified all Windows tests throughout the code.
This commit is contained in:
parent
f2a2b18367
commit
0dab63e050
20 changed files with 49 additions and 44 deletions
|
@ -20,6 +20,7 @@ use Composer\Semver\VersionParser;
|
|||
use Composer\Plugin\CommandEvent;
|
||||
use Composer\Plugin\PluginEvents;
|
||||
use Composer\Package\PackageInterface;
|
||||
use Composer\Util\Platform;
|
||||
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
|
@ -232,7 +233,7 @@ EOT
|
|||
// outside of a real terminal, use space without a limit
|
||||
$width = PHP_INT_MAX;
|
||||
}
|
||||
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
|
||||
if (Platform::isWindows()) {
|
||||
$width--;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue