Gabriel Caruso
6c8ddd4d57
Remove unused private properties
2019-07-24 02:53:53 +02:00
Gabriel Caruso
b4fc3b7eef
Make usage of foreach to improve readability
...
Instead of count and comparing, we can simple use a foreach.
2019-07-24 02:39:40 +02:00
Adam Žurek
b935d1c812
fixed phpstan error
2019-07-12 18:34:12 +02:00
Nils Adermann
9053d74282
Merge branch '2.0' into solve-without-installed
...
* 2.0: (101 commits)
SVN: hide passwords for debug output
Free $solver asap
fixes #8179
[minor] Fixed a typo in the CHANGELOG.md.
Update deps
Update changelog
Revert "Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET" Revert "Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151"
Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151
Fix display of HHVM warning appearing when HHVM is not in use, fixes #8138
Read classmap-authoritative and apcu-autoloader from project config when installing via create-project, fixes #8155
Use possessive quantifiers
Update xdebug-handler to 1.3.3
fixes #8159
Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET
flag should come before script name
use full command name, not abbreviated/alias
modify text
Document the alternatives to disable the default script timeout
Anchor pattern
Fix URL resolution for Composer repositories
...
2019-06-27 14:35:36 +02:00
Nils Adermann
d2fa1e1319
Merge branch 'master' into 2.0
...
* master: (48 commits)
SVN: hide passwords for debug output
Free $solver asap
fixes #8179
[minor] Fixed a typo in the CHANGELOG.md.
Update deps
Update changelog
Revert "Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET" Revert "Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151"
Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151
Fix display of HHVM warning appearing when HHVM is not in use, fixes #8138
Read classmap-authoritative and apcu-autoloader from project config when installing via create-project, fixes #8155
Use possessive quantifiers
Update xdebug-handler to 1.3.3
fixes #8159
Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET
flag should come before script name
use full command name, not abbreviated/alias
modify text
Document the alternatives to disable the default script timeout
Anchor pattern
Fix URL resolution for Composer repositories
...
2019-06-27 14:08:00 +02:00
Nils Adermann
e022c07370
Merge branch '1.8'
...
* 1.8:
SVN: hide passwords for debug output
2019-06-27 14:06:49 +02:00
Stephan Vock
8da046e4e9
SVN: hide passwords for debug output
2019-06-23 18:59:36 +01:00
Ken Love
b51cfce8e6
return the upper-most event in chain
2019-06-13 14:51:27 -04:00
Jordi Boggiano
79a300eaac
Merge branch '1.8'
2019-06-07 16:58:37 +02:00
Jordi Boggiano
fbb964888d
Merge branch '1.8'
2019-06-07 13:12:21 +02:00
pfofi
c751914410
Fix URL resolution for Composer repositories
...
Composer was unable canonicalize URLs in non-HTTP(S) Composer
repositories. For example it was not possible to use a `providers-url`
in a repository loaded via the `file://` scheme.
See also: #8115
2019-05-10 13:55:31 +02:00
Rob Bast
080b0f27e9
add missing testcase
2019-05-08 15:58:02 +02:00
ShiraNai7
a2b647a99e
Handle absolute phar:// paths in autoload_static.php
2019-04-11 20:23:31 +02:00
Jordi Boggiano
2b421a94cb
Merge branch '1.8'
2019-04-09 13:05:02 +02:00
Rob Bast
25e3f6d4b9
expand regex and testcases
2019-04-04 08:31:26 +02:00
Rob Bast
971528916b
fix regex for heredoc/nowdoc
...
* take into account relaxed changes introduced in php 7.3
* see: 4887357269
* allow " as well as ', which was introduced in php 5.3
closes #8080
2019-04-03 10:46:35 +02:00
Patrick Reimers
dd1e80a38f
Add tests for wrong package name.
2019-03-05 10:53:43 +01:00
Andreas Schempp
0e2215dc6c
Added full unit test coverage
2019-03-04 11:08:59 +01:00
Patrick Reimers
5d14a95543
Add test for warning on deprecated naming
2019-03-01 20:11:20 +01:00
Jordi Boggiano
60df892517
Store dev mode in installed.json, fixes #3008
2019-02-21 12:46:02 +01:00
Jordi Boggiano
8fe2b9ec69
Fix test
2019-02-20 13:41:43 +01:00
Jordi Boggiano
3fc9ede24b
Add plugin callbacks for deactivation and uninstall, fixes #3000
2019-02-18 18:14:46 +01:00
Jordi Boggiano
1b7e957cc1
Add EventDispatcher::removeListener to allow deregistration of listeners
2019-02-18 18:12:38 +01:00
Jordi Boggiano
169fb2347a
Avoid issues with git signatures when running tests
2019-02-18 17:00:57 +01:00
Jordi Boggiano
936933fa66
Fix cache tests
2019-02-18 14:12:01 +01:00
Jordi Boggiano
0caa616e6c
Fix test warnings
2019-02-18 14:03:23 +01:00
Jordi Boggiano
799717f102
Tweak and fix some more phpstan reports
2019-02-18 13:05:14 +01:00
CZechBoY
a062cd1a31
added phpstan on level 0
2019-02-18 13:05:14 +01:00
Jordi Boggiano
fb3d0981c0
Fix test suite
2019-02-18 12:35:24 +01:00
Jordi Boggiano
0fd74d1cc4
Fix PerforceDownloader, fixes #7979
2019-02-18 12:28:21 +01:00
Nils Adermann
10ada7bf82
Refactor Installer class into separate install and update processes
...
- Introduce separate Lock and LocalRepo transactions, one for changes
to the lock file, one for changes to locally installed packages based
on lock file
- Remove various hacks to keep dev dependencies updated and
incorporated the functionality into the transaction classes
- Remove installed repo, there are now local repo, locked repo and
platform repo
- Remove access to local repo from solver, only supply locked packages
- Update can now be run to modify the lock file but not install packages
to local repo
2019-02-11 01:00:02 +01:00
Nils Adermann
287419f6a0
Merge branch 'master' into 2.0
...
* master:
Follow up to #7946 test: add solver flag to assert path execution
Fix tests
Make sure config command output is also output on --quiet so that warnings can be hidden, fixes #7963
Recognize composer-plugin-api as a platform package, fixes #7951
Quote wildcards to avoid issues in some shells, fixes #7960
Avoid dumping null values for dist reference/shasum and source reference, fixes #7955
Soften hard exit after revert of composer file
Make unixy proxy code POSIX compatible
Update aliases.md
Same but for Problem.php
Better error message for present but incompatible versions
Fix inconsistent casing
Don't do (new Foo())->bar() - not 5.3-compatible
Support identifying the HHVM version when not running with HHVM
2019-02-10 20:28:24 +01:00
Nils Adermann
0619fbed58
Merge branch '1.8'
...
* 1.8:
Follow up to #7946 test: add solver flag to assert path execution
2019-02-10 20:28:05 +01:00
Nils Adermann
29ff6a40ae
Follow up to #7946 test: add solver flag to assert path execution
2019-02-10 20:26:47 +01:00
Jordi Boggiano
28b51ccfc5
Merge branch '1.8'
2019-02-10 20:24:43 +01:00
Jordi Boggiano
c66bb0b1d0
Fix tests
2019-02-10 13:07:42 +01:00
Jordi Boggiano
ff246e3e85
Merge branch '1.8'
2019-02-10 12:59:38 +01:00
Jordi Boggiano
f2cc666c2c
Merge pull request #7913 from fredemmott/hhvm-version
...
Support identifying the HHVM version when not running with HHVM
2019-02-08 16:13:32 +01:00
Nils Adermann
728e57b9e0
Merge branch 'master' into 2.0
...
* master:
Fix solver problem exceptions with unexpected contradictory "Conclusions"
Also load config into IO if not freshly created
Only load configuration into IO if IO is available
Fix defaultRepos fallback does not use auth config
Add warning/info msg when tweaking disable-tls setting to avoid confusion, fixes #7935
2019-02-05 15:35:51 +01:00
Nils Adermann
fdcae616b0
Merge branch '1.8'
...
* 1.8:
Fix solver problem exceptions with unexpected contradictory "Conclusions"
Also load config into IO if not freshly created
Only load configuration into IO if IO is available
Fix defaultRepos fallback does not use auth config
2019-02-05 15:32:52 +01:00
Nils Adermann
6b2edeae56
Fix solver problem exceptions with unexpected contradictory "Conclusions"
...
This 5 character fix comes with a solver test as well as a functional
installer test essentially verifying the same thing. The solver test is
more useful when working on the solver. But the functional test is less
likely to be accidentally modified incorrectly during refactoring, as
every single package, version and link in the rather complex test
scenario is essential, and a modified version of the test may very well
still result in a successful installation but no longer verify the bug
described below.
Background:
In commit 451bab1c2c
from May 19, 2012 I
refactored literals from complex objects into pure integers to reduce
memory consumption. The absolute value of an integer literal is the id
of the package it refers to in the package pool. The sign indicates
whether the package should be installed (positive) or removed (negative),
So a major part of the refactoring was swapping this call:
$literal->getPackageId()
For this:
abs($literal)
Unintentionally in line 554/523 I incorrectly applied this change to the
line:
$this->literalFromId(-$literal->getPackageId());
It was converted to:
-abs($literal);
The function literalFromId used to create a new literal object. By using
the abs() function this change essentially forces the resulting literal
to be negative, while the minus sign previously inverted the literal, so
positive into negative and vice versa.
This particular line is in a function meant to analyze a conflicting
decision during dependency resolution and to draw a conclusion from it,
then revert the state of the solver to an earlier position, and attempt
to solve the rest of the rules again with this new "learned" conclusion.
Because of this bug these conclusions could only ever occur in the
negative, e.g. "don't install package X". This is by far the most likely
scenario when the solver reaches this particular line, but there are
exceptions.
If you experienced a solver problem description that contained a
statement like "Conclusion: don't install vendor/package 1.2.3" which
directly contradicted other statements listed as part of the problem,
this could likely have been the cause.
2019-02-03 16:33:55 +01:00
Fred Emmott
bac2ef3dfd
Don't do (new Foo())->bar() - not 5.3-compatible
2019-02-01 11:20:34 -08:00
Fred Emmott
1b196720bf
Support identifying the HHVM version when not running with HHVM
...
hhvm-nightly (and the next release) are no longer able to execute
Composer. Support executing Composer with PHP to install dependencies
for hack projects.
The goal is for this to be temporary, until Hack identifies a new
package manager, given that Composer does not aim to be a multi-language
package manager.
fixes #7734
2019-01-29 09:48:15 -08:00
Jordi Boggiano
71193132a3
Fix test
2019-01-29 14:22:20 +01:00
Jordi Boggiano
4517c00d40
Merge branch 'master' into 2.0
2019-01-29 14:01:28 +01:00
Jordi Boggiano
79af9d45af
Merge branch '1.8'
2019-01-29 13:49:25 +01:00
Jordi Boggiano
acea4a4d4d
Warn on invalid package name or require/provide/.., fixes #7874
2019-01-29 13:46:23 +01:00
Jordi Boggiano
98a15bc93c
Add output for metapackage installs/updates/.. fixes #7586
2019-01-29 11:38:18 +01:00
Jordi Boggiano
b89720b52a
Merge branch 'master' into 2.0
2019-01-28 18:00:52 +01:00
Jordi Boggiano
81de5f82aa
Merge branch '1.8'
2019-01-28 17:57:31 +01:00
Sascha Egerer
1845adcfbd
Fix update whitelist pattern resolving and add more tests
2019-01-28 17:34:24 +01:00
Sascha Egerer
50cb5fe3da
Update all whitelist matching root dependencies
...
The update command can receive a pattern like `vendor/prefix-*`
to update all matching packages.
This has not worked if multiple packages, depending on each other,
where matched to the given pattern. No package has been updated
in this case as only the first package matching the pattern was
added to the whitelist.
2019-01-28 17:34:08 +01:00
Nils Adermann
386382503d
Add a test for autoloading if a package is only required via replacing name
2019-01-28 17:08:51 +01:00
Den Girnyk
3b6b63784f
Fix: Keep replaced packages for autoload dumping with --no-dev
2019-01-28 17:02:32 +01:00
Jordi Boggiano
2200043a43
Merge pull request #7900 from Great-Antique/fix-dumpautoload-no-dev-packages-resolving
...
Fix: Keep replaced packages for autoload dumping with --no-dev
2019-01-28 15:52:43 +01:00
Jordi Boggiano
b7d1f87848
Fix tests
2019-01-28 15:44:21 +01:00
Jordi Boggiano
0b928b2a42
Merge branch 'master' into 2.0
2019-01-28 14:33:10 +01:00
Jordi Boggiano
f54237159d
Cleanups
2019-01-18 12:14:47 +01:00
Den Girnyk
5b78ea529a
Fix: Keep replaced packages for autoload dumping with --no-dev
2019-01-18 11:45:35 +02:00
Jordi Boggiano
3dfcae99a9
Add parallel download capability to FileDownloader and derivatives
2019-01-18 08:39:03 +01:00
Jordi Boggiano
fd5c5ff6bc
Fix implementation of whatProvides for older provider-only repos
2019-01-14 17:29:24 +01:00
Jordi Boggiano
b47330adf1
Refactor ComposerRepository to work with combined repos having lazy providers and partial packages
2019-01-14 17:29:24 +01:00
Jordi Boggiano
e8c6948770
Deduplicate link instances between versions of a given package
2019-01-14 17:29:24 +01:00
Jordi Boggiano
64384f8b15
Fix tests
2019-01-14 17:29:24 +01:00
Jordi Boggiano
fd11cf3618
Port/extract most behavior of RemoteFilesystem to CurlDownloader
2019-01-14 17:29:23 +01:00
Jordi Boggiano
09fd239f24
Fix factory test
2019-01-14 17:29:23 +01:00
Jordi Boggiano
1cd9f4f9db
Disable request_fulluri by default for HTTPS connections
2019-01-14 17:29:23 +01:00
Jordi Boggiano
f946d8eb5a
More RemoteFilesystem usage removals and some repository/vcs driver refactorings
2019-01-14 17:29:23 +01:00
Jordi Boggiano
713bc4de1d
Minor fixes and updated the rest of the code/tests to use HttpDownloader
2019-01-14 17:29:23 +01:00
fancyweb
a9d6068c57
feat(buffer-io): add the possibility to set user inputs for interactive questions
2019-01-05 11:59:33 +01:00
Jordi Boggiano
bf33eec912
Fix tests
2018-12-03 10:59:04 +01:00
Jordi Boggiano
411dd51f20
Merge branch 'master' into 2.0
2018-12-03 10:41:19 +01:00
Jordi Boggiano
85ec111dee
Merge remote-tracking branch 'dmanners/add-chat-option-for-support'
2018-11-26 19:47:13 +01:00
Jérôme Deuchnord
b0b00ad1fa
Call a script recursively with extra parameters ( #7720 )
...
* Added support for calling scripts recursively (fixes #7562 )
2018-11-26 12:35:41 +01:00
Jordi Boggiano
2e0f31106a
Merge remote-tracking branch 'origin/master' into 2.0
2018-11-12 16:01:07 +01:00
Jordi Boggiano
5a56bb6971
Remove BC event and constraint classes
2018-11-12 15:57:44 +01:00
Jordi Boggiano
86f59348f5
Fix TestCase import
2018-11-12 15:24:28 +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
ceb3a7a8e8
Merge branch '1.7'
2018-10-31 18:32:39 +01:00
Jordi Boggiano
42dca2aff5
Remove weird binary file from repo
2018-10-31 18:29:32 +01:00
Jordi Boggiano
2528654c53
Merge branch '1.7'
2018-10-31 18:13:39 +01:00
Jordi Boggiano
9e6a0bff71
Merge pull request #7658 from fooman/fix-non-zip-file-with-zip-ext
...
Fix regression for artifact repository
2018-10-31 16:12:55 +01:00
Alexey Kopytko
aa6d138bdc
Check for the actual warning description
2018-10-30 15:56:24 +01:00
Alexey Kopytko
20107dbf77
Ensure that a missing SSL/TLS protection warning does not pollute STDOUT
...
Fixes #7737
2018-10-30 15:56:24 +01:00
Stephan Vock
819f487b38
Bitbucket: switch to v2 API
2018-10-19 14:31:17 +02:00
David Manners
96347fbea1
composer/composer#7384 : add chat to support options
...
- update schema documents to note that chat is allowed,
- validate that chat must be a string and a url similar to forum options
2018-10-14 11:15:25 +00:00
Kristof Ringleff, Fooman
add71388ca
Add failing artifact
2018-10-01 23:03:51 +13:00
Nils Adermann
902cb290e7
Only load package versions which fit the root composer.json constraints
2018-09-12 16:48:17 +02:00
Nils Adermann
81bb8f81ad
Set all package ids only once the pool is created
...
They all get set in one place only and at a specific time when nothing
else will possibly change them anymore
2018-09-12 14:31:40 +02:00
Nils Adermann
5c491ecc9b
Merge pull request #7625 from naderman/repository-set
...
Separate RepositorySet from Package Pool, load only metadata of packages directly required
2018-09-12 14:22:01 +02:00
Nils Adermann
96c812fb24
Properly buffer installer test output to display as errors if necessary
2018-09-12 13:27:10 +02:00
Nils Adermann
c0f19f6c57
Move construction of pool from repo set into a pool builder
...
Pool construction depends on the install request now, so only required
packages get loaded, add some structure for future asynchronously
loading composer repositories
2018-09-12 11:49:09 +02:00
Nils Adermann
b6e2d60c9e
Create the pool in the installer before giving it to the solver
2018-09-11 15:49:08 +02:00
Nils Adermann
1228bcdffc
Internalize pool creation in repository set, store root aliases in set
...
The pool is still exposed too early in a few places which will require
further refactoring
2018-09-11 13:34:18 +02:00
Nils Adermann
6ef65e5319
Add a new RepositorySet class and restrict pool usage to the solver
...
Breaking change for the plugin interface so bumping the version of
composer-plugin-api to 2.0.0
First step for a refactoring of the package metadata loading mechanism
2018-09-10 15:27:54 +02:00
Gabriel Caruso
71c8735e11
Use combined assignment operators
2018-09-10 14:24:41 +02:00
Gabriel Caruso
a17f051e29
Remove useless parentheses
2018-09-10 14:24:24 +02:00
Christophe Coevoet
8c3898aa57
Update tests for replace conflicts
...
This reverts the test changes done in b4698568d2
to the original tests added
in 1425bb7fc3
.
2018-08-27 12:14:34 +02:00
Jordi Boggiano
bf125295df
Fix escaping of URLs in Perforce and Subversion drivers
2018-08-25 18:48:56 +02:00
Jordi Boggiano
3d01ef28fa
Revert "Do not dump source and dist for metapackages"
...
The source/dist reference is needed to operate composer outdated and other functionality
Fixes #7546
This reverts commit 42739e7959
.
2018-08-22 09:45:54 +02:00
Alexander Kurilo
e1a6bd5ff1
Make JSON formatter test clearer
2018-08-10 08:54:34 +02:00
Alexander Kurilo
5a22a4f1f3
Make surrogate sequences in JSON work on PHP 5.3
...
Fixes #7510
2018-08-10 08:54:27 +02:00
Rafael Kassner
42739e7959
Do not dump source and dist for metapackages
2018-07-29 16:16:02 +02:00
Jordi Boggiano
ff59bbdab0
CS fixer
2018-07-24 14:32:52 +02:00
Jordi Boggiano
c5fa3bdde0
Migrate to repo.packagist.org for package metadata
2018-07-24 09:30:06 +02:00
Jordi Boggiano
16af52be8a
Merge remote-tracking branch 'origin/1.6'
2018-07-20 11:39:44 +02:00
Théo FIDRY
87646ae689
Hide suggest reason when there is not one
2018-06-09 15:18:21 +01:00
Jordi Boggiano
0a27ca7b65
Make sure circular dependencies do not break the autoload dumper, refs #7316 , refs #7348
2018-06-06 14:51:52 +02:00
Jordi Boggiano
eedbd218f5
Make sure circular dependencies do not break the autoload dumper, refs #7316 , refs #7348
2018-05-31 17:02:04 +02:00
Jordi Boggiano
46f973e213
Merge branch '1.6'
2018-05-15 16:07:05 +02:00
Philipp Fritsche
b0be87177d
Filter dev-dependencies from "dump-autoload --no-dev" , fixes #4343
2018-05-08 02:57:26 +02:00
Jordi Boggiano
4ebb747e12
Merge branch '1.6'
2018-05-04 11:18:18 +02:00
Jordi Boggiano
78ae0a97f7
Terminate quoted strings
2018-05-04 11:02:12 +02:00
Jordi Boggiano
3b9d6769bf
Fix class names in comments being parsed in short_open_tags files, fixes #7289
2018-05-04 11:02:12 +02:00
Jordi Boggiano
464daeebe2
Merge branch '1.6'
2018-05-03 17:38:09 +02:00
Jordi Boggiano
43e33be79f
Fix regression in 036fc44c25
, fixes #7268
2018-05-03 17:30:33 +02:00
Jordi Boggiano
38866ba310
Merge remote-tracking branch 'johnstevenson/external-xdebug'
2018-04-13 15:38:27 +02:00
Jordi Boggiano
c917865fe9
Fix handling of dev versions and consolidate logic, refs #7119
2018-04-13 13:55:02 +02:00
Jordi Boggiano
24ad6307a7
Merge remote-tracking branch 'austris-argalis/issue-7085'
2018-04-13 13:11:46 +02:00
Jordi Boggiano
ea78712822
Merge branch '1.6'
2018-04-13 10:52:23 +02:00
Edwin Rodríguez
9dc6222288
Allow using fossil dependency in a fossil repository, fixes #7125 , closes #7126
2018-04-13 09:00:03 +02:00
Jordi Boggiano
35ebb8b93f
Merge branch '1.6'
2018-04-12 19:22:50 +02:00
Filippo Tessarotto
277f32d388
Lock _readme: remove outdated hashtag link part, closes #7096
2018-04-12 18:00:01 +02:00
Jordi Boggiano
2bd34c0534
Merge branch '1.6'
2018-04-12 17:01:00 +02:00
Jordi Boggiano
9041622b86
Fix version guessing regression and a few other issues, fixes #7127
2018-04-12 15:16:39 +02:00
Jordi Boggiano
bfa01285c2
Merge branch '1.6'
2018-04-12 10:25:03 +02:00
Jordi Boggiano
066351c5b9
Remove use of deprecated getMock method
2018-04-12 10:24:56 +02:00
Jordi Boggiano
036fc44c25
Make sure aliased packages are removed correctly from the repository, fixes #7167
2018-04-12 09:51:01 +02:00
Petr /Peggy/ Sládek
8d06832077
Update ClassMapGenerator to work better with symlinks, fixes #7252 , closes #7251
2018-04-12 09:37:26 +02:00
johnstevenson
ed97c2116c
Use external XdebugHandler library
2018-03-08 19:20:16 +00:00
austris argalis
8a5645ffda
Wording: Downgrading instead of Updating #7085
2018-02-16 00:38:41 +02:00
Jordi Boggiano
16dcb04e1d
Merge branch '1.6'
2018-01-24 10:28:44 +01:00
Jordi Boggiano
a1bf6890d5
Fix ConsoleIO tests
2018-01-24 10:28:39 +01:00
Jordi Boggiano
96d07e6753
Merge branch '1.6'
2018-01-22 16:44:24 +01:00
Jordi Boggiano
842a7ea922
Fix dev-master not being normalized correctly for the root package, fixes #7007
2018-01-22 16:44:17 +01:00
Jordi Boggiano
ad8b44a4c8
Merge branch '1.6'
2018-01-22 15:42:56 +01:00
Jordi Boggiano
ea9b7ecbb0
Merge pull request #6982 from carusogabriel/phpstan
...
Fixes from PHPStan level 0
2018-01-22 14:50:43 +01:00
Jean-Baptiste
595cf4432c
Fix Test RepositoryFactory
2018-01-22 14:06:56 +01:00
Martin Hujer
bbee0d7c6c
Validation warns if script description for nonexistent script is present
...
Fixes #7010
2018-01-17 19:15:06 +01:00
Gabriel Caruso
3d262bd637
Fixes from PHPStan level 0
...
More fixes from PHPStan level 0
2018-01-14 11:44:15 -02:00
Tomas Klinkenberg
60106edd32
Added a test to confirm issue #6994 .
...
Added a encapsulated group to the replacement parameter of the `preg_replace` for GitLab in `\Composer\Util\Url::updateDistReference()`. This fixes #6994 .
2018-01-09 17:57:22 +01:00
Jordi Boggiano
e6114b2ca7
Fix support for replacing dist refs in gitlab URLs and add support for gitlab/github enterprise too
2018-01-05 15:20:30 +01:00
Gabriel Caruso
2ad6f611d7
Allow bin key to receive string
2018-01-02 07:00:55 -02:00
Andreas Möller
79828f7543
Enhancement: Assert that key is removed when value is null
2017-12-28 21:11:54 +01:00
Andreas Möller
6059acf0a3
Fix: Remove unused parameter and field
2017-12-27 13:20:12 +01:00
Jordi Boggiano
50665aa18d
Simplify check for current revision, refs #6684
2017-12-19 17:50:02 +01:00
Jordi Boggiano
93cd9d874b
Merge remote-tracking branch 'RobberPhex/git-repo'
2017-12-19 15:47:58 +01:00
John Stevenson
02fbbd5a42
Skip MockedZipDownloader tests if zip is missing ( #6917 )
...
* Skip MockedZipDownloader tests if zip is missing
2017-12-19 11:07:09 +01:00
Jordi Boggiano
a1c5754b1f
Make sure tests run non-interactively
2017-12-18 17:18:59 +01:00
Jordi Boggiano
c8aea719b1
CS fixes
2017-12-18 16:02:48 +01:00
Jordi Boggiano
0a9abeef88
Merge branch '1.5'
2017-12-17 15:05:08 +01:00
Renoir Boulanger
9f723ba381
Support GitLab repositories w/ port over HTTPs
...
When we have self-hosted GitLab, over HTTPs, on a different port.
rel composer/composer#6894
2017-12-17 13:59:08 +01:00
Alessandro Lai
54adf0b61e
Add regression test about VersionGuesser pretty_version handling
2017-12-17 13:49:07 +01:00
Gabriel Caruso
885da4c8ef
Refactoring tests
2017-12-03 02:41:58 -02:00
Gabriel Caruso
afc9a7643e
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
2017-11-30 13:44:43 -02:00
Gabriel Caruso
a4b220273e
Refactoring Tests ( #6849 )
2017-11-30 15:58:10 +01:00
Jordi Boggiano
6256e17149
Merge branch '1.5'
2017-11-30 15:19:19 +01:00
Jordi Boggiano
5ba6d7d436
Fix pretty guessed versions to show nicely on numeric branches, refs #6845
2017-11-30 15:19:11 +01:00
Alessandro Lai
3cf31da414
Fix root package not having a pretty version when detecting from VCS, fixes #6845 , closes #6847
2017-11-30 15:07:08 +01:00
Jordi Boggiano
eab826b00b
Merge branch '1.5'
2017-11-29 16:37:49 +01:00
Jordi Boggiano
45cd26b2df
Fix test and actually check that we get hasAuthentication called for different domains
2017-11-29 16:37:00 +01:00
Jordi Boggiano
9850621c6b
Merge pull request #6788 from GawainLynch/symfony-4
...
Symfony 4
2017-11-28 18:30:31 +01:00
Jordi Boggiano
0b3bc4ccb9
Merge branch '1.5'
2017-11-28 18:09:36 +01:00
johnstevenson
b0922b95af
Report multiple inis in php.ini specific messages
...
Where systems use multiple ini files it is perhaps more useful to
suggest running `php --ini` to see their locations, rather than showing
the loaded php.ini (if one exists).
2017-11-28 18:09:08 +01:00
Nils Adermann
7dffe79a0f
Update tests of solver problem message to match new message
2017-11-16 12:41:41 +01:00
Robert Lu
3ce71a55bf
fix unittest
2017-11-07 13:54:52 +08:00
Gawain Lynch
f74c6f4620
Update tests to handle optional QuestionHelper::setInputStream() availability
2017-11-06 16:32:29 +01:00
Gawain Lynch
157075b996
Migrate ConsoleIO::select to use QuestionHelper and ChoiceQuestion
2017-11-06 16:29:55 +01:00
Jordi Boggiano
26a50b3762
Merge branch '1.5'
2017-11-03 19:53:36 +01:00
Jordi Boggiano
4ab34c22fa
Merge pull request #6740 from croensch/master
...
also support NO_PROXY
2017-11-03 19:50:28 +01:00
Jérôme Vasseur
71c2ecbace
Fix platform package detection in VersionParser
2017-11-03 19:48:52 +01:00
Jordi Boggiano
9a99e86ebc
Rename NonRoot to Transitive, refs #6674
2017-11-03 14:35:04 +01:00
Jordi Boggiano
9df22654c3
Merge remote-tracking branch 'grasmash/issue-6661-whitelist-all-deps'
2017-11-03 14:20:38 +01:00
croensch
6da92e98ac
also support NO_PROXY
...
since WINDOWS can only have one case and that is usually upperase
2017-10-12 16:35:05 +02:00
Matthew Grasmick
776977f597
Fixing method name.
2017-09-11 13:53:56 -04:00
Vladimir Reznichenko
c8615358cb
SCA with PHP Inspections (EA Extended)
2017-09-11 19:40:43 +02:00
Matthew Grasmick
11db6f90c2
Cleaning up comments
2017-09-11 12:56:51 -04:00
Matthew Grasmick
3826e51caa
Renaming some methods and props.
2017-09-11 12:38:54 -04:00
Matthew Grasmick
ad465aa769
Updating var names.
2017-09-11 11:47:33 -04:00
Matthew Grasmick
21722f6e42
Fixing test version constraints.
2017-09-11 11:32:19 -04:00
Matthew Grasmick
f29e98cdf9
Fixes #6661 : Allow a given package and its dependencies (including siblings) to be updated.
2017-09-11 11:16:15 -04:00
Jordi Boggiano
dae575c197
Merge branch '1.5'
2017-09-11 16:09:36 +02:00
Deamon
3d753b117b
add test on remove mainkey at end of file
2017-09-11 16:07:13 +02:00
Jordi Boggiano
a8df30c09b
Merge branch '1.5'
2017-09-11 12:16:16 +02:00
Mikk Tendermann
2a89d37651
fix gitlab not telling visibilty if user is not logged in
2017-09-11 10:37:32 +02:00
Christian Ramelow
f178c340e9
Fixed tests.
2017-09-01 20:47:13 +02:00
Christian Ramelow
39d8104897
Introduces a new method `copy()`.
...
Some packages, e. g. `tm/tooly-composer-script`, are using the composer classes to e. g. create symlinks or perform other file operations. While there's only a `copyThenRemove()` method this commit introduces a new `copy()` method. `copy()` behaves the same as the copy part of `copyThenRemove()` did with one exception: it returns `true` on success and `false` on failure. Copying a directory may lead to a `false`, while the whole directory or some of its files couldn't been copied. To ensure backwards compatibility `copyThenRemove()` calls `copy()` now. This commit also adds the necessary tests.
2017-08-31 20:19:43 +02:00
Jordi Boggiano
e33d00f98e
Fix gitlab tests
2017-08-18 14:14:15 +02:00
Jordi Boggiano
f420d31233
Fix application test
2017-08-08 10:43:26 +02:00
Jordi Boggiano
a6c4fb2dcf
Fix gitlab tests
2017-08-08 10:26:35 +02:00
Jordi Boggiano
c89f6338c2
CS tweaks, refs #6592
2017-08-08 10:11:35 +02:00
Helmut Januschka
ae42e4f8a3
php 5
2017-08-07 22:00:14 +02:00
Helmut Januschka
bc4a7834ba
php 5 being php5 :/
2017-08-07 21:56:02 +02:00
Helmut Januschka
b847270d08
rename test method
2017-08-07 21:47:41 +02:00
Helmut Januschka
b486056066
add tests for gitlab paging
2017-08-07 21:46:43 +02:00
Jordi Boggiano
b07be842a0
Remove feature-branches option as it is misnamed and duplicates the non-feature-branches option, refs #6475
2017-08-07 18:14:04 +02:00
Jordi Boggiano
6832eacb01
Update GitLab API usage to v4, fixes #6453
2017-08-07 13:13:24 +02:00
Jordi Boggiano
65d49bf811
Merge branch '1.4'
2017-08-07 10:04:46 +02:00
Jordi Boggiano
d2b102ecb9
Merge remote-tracking branch 'svenmuennich/pr/fix-require-command' into 1.4
2017-08-07 09:25:24 +02:00
Sergey Shcherbin
118abacd14
Fix for time format in GitBitbucketDriver test
2017-08-06 12:40:47 +02:00
Jordi Boggiano
34dbde3873
Merge branch '1.4'
2017-07-03 17:00:48 +02:00
Sven Münnich
d51ef83a43
Fix case insensitivity of ‘require’ command
...
When currently executing the `require` command for a package that is already listed in `require(-dev)`, one must use the exact same, case matching package name as written in `composer.json`. That is, if one changes the case of a character in the package name, the `require` command will add a new entry to `require(-dev)`, instead of updating the existing one.
This commit fixes the described behaviour to make it consistent with other commands like `update` that are already case insensitive.
2017-07-03 12:11:24 +02:00
Rob Bast
422a9adb07
images related to new trusty images
2017-06-22 15:20:19 +02:00
Jordi Boggiano
ef47d8bf05
Merge pull request #6486 from WilHall/feature/htaccess-protect-option
...
Add htaccess-protect option for disabling the creation of .htaccess files
2017-06-17 15:39:56 +02:00
Jordi Boggiano
91a4e76958
Merge pull request #6460 from bmax/master
...
Cache: clear cache using removeDirectory
2017-06-17 15:28:05 +02:00
Brandon Max
24b8fea48a
Cache: clear cache using removeDirectory
2017-06-16 16:25:11 -04:00
Wil Hall
f0924fb878
Add htaccess-protect option for disabling the creation of .htaccess files
2017-06-15 11:06:13 -04:00
Jordi Boggiano
7cee8e385f
Merge branch '1.4'
2017-06-15 16:28:08 +02:00
Jordi Boggiano
cc9234562d
Merge pull request #6475 from NamelessCoder/featurebranches
...
Add support for feature-branches setting
2017-06-15 15:49:10 +02:00
Claus Due
965f1f42d1
Add support for feature-branches setting
...
A negative list of non-feature-branches names
is already supported - this patch adds a list of
branches names which *will* be considered as
feature branches.
Allows changing the currently hardcoded set of
expected feature branch names, from:
* master|trunk|default|develop
To any set of names or patterns that you desire.
2017-06-11 19:02:51 +02:00
Sergey Shcherbin
292882f0d0
Fix for time format in GitBitbucketDriver test
2017-06-07 22:29:15 +03:00
Nils Adermann
b1110df873
Merge pull request #6371 from balbuf/balbuf/move-all-plugins
...
Move all plugins and their dependencies to the front
2017-05-24 13:23:09 +02:00
Stephen Beemsterboer
06bb6c7530
Move plugins with no dependencies to the front, followed by plugins with their dependencies
2017-05-23 20:28:32 -04:00
Remi Collet
741c8d63fb
fix test for Symfony 3.2
2017-05-22 08:16:45 +02:00
Remi Collet
95d82f6fde
fix test for json-schema 5.2
2017-05-22 08:01:51 +02:00
Martin Hasoň
88ec172bd8
Fix CS
2017-05-19 15:14:47 +02:00
Martin Hasoň
d1ba698291
Fix PHP 5.3 compatibility
2017-05-19 12:36:19 +02:00
Martin Hasoň
3c5bfcf1e9
Register github repository type
2017-05-19 11:40:42 +02:00
Jordi Boggiano
a6627d55b7
Fix build
2017-05-16 23:50:15 +02:00
Jordi Boggiano
ce56fc4ab6
Merge pull request #6381 from deeky666/pass-vsc-driver-options
...
Forward GitLab driver options to remote filesystem
2017-05-16 23:36:30 +02:00
Jordi Boggiano
c917c52f81
Message tweak, refs #6341
2017-05-16 22:45:47 +02:00
AjiYakin
8858b27ced
Warn identical names w/ different capitalization - extract zip archive
...
Warn about identical names with different capitalization on zip archive
extract failure (Not a directory)
Issue #5938
2017-05-16 22:43:04 +02:00
Steve Müller
1d29fa04b1
forward GitLab driver options to remote filesystem
2017-04-26 16:59:50 +02:00
Rob Bast
e2eb8f2201
support for gitlab subgroups, closes #6349
2017-04-24 10:51:47 +02:00
Stephen
6c4800b8d2
Update corresponding test for plugin moving
2017-04-22 16:43:07 -04:00
Jordi Boggiano
e3a23c0047
Merge branch '1.4'
2017-04-20 13:43:12 +02:00
Jordi Boggiano
75416c69b4
Merge pull request #6340 from derrabus/remove-control-chars-from-suggest
...
Remove ANSI control characters from suggested packages output
2017-04-19 17:49:46 +02:00
Alexander M. Turek
20050dd984
Remove console formatting as well.
2017-04-19 17:24:47 +02:00
Jordi Boggiano
3c1e7a67cf
Merge branch '1.4'
2017-04-19 13:37:25 +02:00
Jordi Boggiano
9b3c9e0c26
Fix tests
2017-04-19 13:34:57 +02:00
Jordi Boggiano
123e8956c7
Merge pull request #6337 from theotonge/bugfix-5989
...
Fix for https://github.com/composer/composer/issues/5989
2017-04-19 13:34:43 +02:00
Alexander M. Turek
401ef69ae3
Remove ANSI control characters from suggested packages output.
2017-04-11 15:20:40 +02:00
Theo Tonge
c077df0d80
Fix for https://github.com/composer/composer/issues/5989
...
Enforce yes/no answers for Confirmation Questions
2017-04-10 21:33:30 +01:00
Jordi Boggiano
2c03dab4c3
Merge branch '1.4'
2017-04-10 18:47:30 +02:00
Jordi Boggiano
be201924cd
Revert "Changes the query string parameter `sha` to `ref` to reflect the GitLab API"
...
Fixes #6344 , refs #6198
This reverts commit 8a496cd2a7
.
2017-04-10 18:46:38 +02:00
Nicole Cordes
d834fcfac5
Change commitHash to match real life examples
2017-04-03 12:00:31 +01:00
Nicole Cordes
c0f5a64e81
Use long array sysntax for PHP 5.3 compatibility
2017-03-31 17:09:04 +02:00
Nicole Cordes
c2fe198ebc
Re-add unit test for FETCH_HEAD parsing
2017-03-31 15:37:39 +02:00
Nicole Cordes
313e6b914d
Fix Git branch parsing for detached HEAD on a commit
...
Current versions of Git output the commit hash as detached HEAD instead
of FETCH_HEAD. The VersionGuesser should be able to handle commit hashes
as well as FETCH_HEAD to detect the correct branch of a commit.
2017-03-31 15:02:50 +02:00
Jordi Boggiano
61511cfed6
Fix CS issues, refs #6159
2017-03-30 09:29:48 +02:00
Jordi Boggiano
0a337e7c75
Merge remote-tracking branch 'gza/fix_unzip_on_win_php56'
2017-03-30 09:15:26 +02:00
Jose Miguel Pérez Ruiz
4ba3c741f5
Fix Init Command to accept author names with Unicode combining diacritical marks
2017-03-17 21:58:57 +01:00
Jose Miguel Pérez Ruiz
b2f62bc06c
Fix Init Command to accept author names with Unicode combining diacritical marks
2017-03-16 01:43:54 +01:00
Guillaume ZITTA
f89e01d622
switch first / fallback order
2017-03-14 23:43:48 +01:00
Jordi Boggiano
843877cd6d
Fix hg version guessing, fixes #6236 , fixes #6235
2017-03-08 17:12:13 +01:00
Filippo Tessarotto
04b1ddb79f
VersionGuesser test for HG
2017-03-08 16:10:12 +01:00
Jordi Boggiano
122e422682
CS fixes
2017-03-08 15:16:44 +01:00
Jordi Boggiano
ddef9923b0
Merge branch '1.3'
2017-03-08 10:33:46 +01:00
Sjoerd Adema
8a496cd2a7
Changes the query string parameter `sha` to `ref` to reflect the GitLab API
...
Updated the unit test to reflect the change
Fixes #6198
2017-03-08 10:27:58 +01:00
Jordi Boggiano
f200343cf2
Fix gitlab driver issues not asking for auth when token is missing, and not falling back properly to git driver
2017-03-08 10:26:08 +01:00
Jordi Boggiano
44ea284ab9
Merge remote-tracking branch 'stefangr/implement_bitbucket_api_v2'
2017-03-07 14:43:16 +01:00
Jordi Boggiano
c61a1c7523
Merge branch '1.3'
2017-03-07 10:02:15 +01:00
Jordi Boggiano
260b85882f
Merge remote-tracking branch 'dzuelke/installmsgs' into 1.3
2017-03-07 10:01:02 +01:00
rubenrua
4e1887a721
Improve memory usage resolving dependencies
...
It is known that composer update takes a lot of memory: #5915 , #5902 ,
I am playing with a profiler (@blackfireio) to make a demo in my local
PHP meetup (@phpvigo) and I found out a way to use less memory. These
are my first tests:
* Private project using PHP 5.6:
* Memory: from 1.31GB to 1.07GB
* Wall Time: from 2min 8s to 1min 33s
* symfony-demo using PHP 7.1 in my old mac book:
* Memory: from 667MB to 523MB
* Wall Time: from 5min 29s to 5min 28s
Not use an array inside conflict rules is this improvement main idea:
```php
<?php
//Memory 38MB
gc_collect_cycles();
gc_disable();
class Rule
{
public $literals;
public function __construct(array $literals)
{
$this->literals = $literals;
}
}
$rules = array();
$i = 0;
while ($i<80000){ //
$i++;
$array = array(-$i, $i);
$rule = new Rule($array);
$rules[] = $rule;
}
```
```php
<?php
//Memory 11.1MB
gc_collect_cycles();
gc_disable();
class Rule2Literals
{
public $literal1;
public $literal2;
public function __construct($literal1, $literal2)
{
$this->literal1 = $literal1;
$this->literal2 = $literal2;
}
}
$rules = array();
$i = 0;
while ($i<80000){ //
$i++;
$rule = new ConflictRule(-$i, $i);
$rules[] = $rule;
}
```
More info https://github.com/composer/composer/pull/6168
2017-02-20 18:52:17 +00:00
Guillaume ZITTA
abf06913a2
remove useless expect (already done by docstring)
2017-02-14 17:37:40 +01:00
Guillaume ZITTA
921ffe741f
Cleaner fallback Algorithm
2017-02-13 15:54:55 +01:00
Jordi Boggiano
20c16f18f5
Merge branch '1.3'
2017-01-27 18:01:50 +01:00
Jordi Boggiano
f3d0e4660d
Fix urlencoding of gitlab dots, fixes #6064
2017-01-27 18:01:24 +01:00
David Zuelke
2d36324e99
streamline install progress messages
2017-01-24 20:51:37 +01:00
Stefan Grootscholten
5dbdefdd72
Implement ordering in requesting tags and branches.
...
Update unit test with latest changes.
2017-01-22 15:55:17 +01:00
Stefan Grootscholten
7ae4ed1ec8
Improve fetching single files via bitbucket API.
...
The former implementation used the 'src' endpoint which returned some meta data as well.
This has been replaced with the 'raw' endpoint which does not return the meta data and does not need an extra JSON decode step.
2017-01-22 14:35:37 +01:00
Stefan Grootscholten
d25c483231
Implement Bitbucket API version 2.0 (where applicable).
2017-01-22 14:35:37 +01:00
Stefan Grootscholten
512750a20e
Add more tests to cover the new functionality.
2017-01-22 14:35:37 +01:00
Stefan Grootscholten
a4af559ca8
Store access-token for re-use
...
Store the Bitbucket access-token (and the expiration time) so it can be re-used within the time it is valid.
The Bitbucket::requestToken and Bitbucket::getToken now only return the access-token and not all other parameters it receives from the Bitbucket API.
2017-01-22 14:35:37 +01:00
jbixler
dac51c7f4b
Add ignore filters option to archive command
2017-01-11 16:21:44 -06:00
Christophe Coevoet
1cb0ec7911
Resolve references in ComposerSchemaTest
2017-01-03 11:57:35 +01:00
johnstevenson
2b8ad7dc2a
Clear xdebug version if restart fails, fixes #5995
2016-12-27 18:46:21 +00:00
Jordi Boggiano
2782d37a15
Merge pull request #5992 from AnrDaemon/fix-git-skips-proper
...
Properly skip GitDownloaderTest if git is not available
2016-12-24 01:47:04 +01:00
AnrDaemon
1d2a949e3e
Properly fix git excludes.
...
Mindless copy-paste never gets old. Sorry. This is fixed proper this time.
2016-12-24 03:19:50 +03:00
AnrDaemon
810e70d234
Fix __DIR__/getcwd() inconsistency.
2016-12-23 21:57:00 +03:00
Jordi Boggiano
df5fd3ba09
Cache executable finder calls
2016-12-23 15:01:05 +01:00
AnrDaemon
ab70601700
Skip git-related tests if no git found.
2016-12-22 20:14:57 +03:00
johnstevenson
3928f1f3be
Set xdebug version in environment, fixes #5967
2016-12-15 21:20:41 +00:00
Jordi Boggiano
a1b468ea50
Fix git shortening, it is sunday..
2016-12-11 17:04:24 +01:00
Jordi Boggiano
98c5f825e0
Fix tests and regression in @ref script handling
2016-12-11 16:37:55 +01:00
Jordi Boggiano
4d77ffcb4a
Merge branch 'simplify-output'
2016-12-11 16:24:01 +01:00
Jordi Boggiano
4d082f77b8
Simplify composer output to take less lines
2016-12-07 01:09:06 +01:00
Jordi Boggiano
e54c7478ee
Attempt at fixing support for git 2.11, refs #5942
2016-12-07 01:02:55 +01:00
Jordi Boggiano
1dcb2b5758
Merge remote-tracking branch 'nicolas-grekas/apcu'
2016-12-07 00:21:13 +01:00
Jordi Boggiano
e9d04f2b2d
Merge branch '1.2'
2016-12-06 17:04:39 +01:00
Hans-Joachim Michl
817b2747c7
Fix #5672
...
This fixes the issue reported in #5672 .
It just makes sure the ZendGuard encoded files can be autoloaded correctly.
2016-12-06 17:02:27 +01:00
Dries Vints
2ab7df5566
Do not add newlines to output
2016-12-06 16:53:46 +01:00
Nicolas Grekas
6d4e60b991
Add --apcu-autoloader option to enable APCu caching of found/not-found classes
2016-12-06 11:21:44 +01:00
Jordi Boggiano
f3f063e3e2
Merge pull request #5888 from alcohol/array-default
...
use array as default value
2016-12-01 14:24:41 +01:00
Rob Bast
873f17261c
try to fix test instead of guarding implementation
2016-12-01 14:03:20 +01:00
Jordi Boggiano
8a2f597db3
Fix tests
2016-11-30 23:56:43 +01:00
Jordi Boggiano
91e7372c6e
Backport update packagist default repo to be packagist.org
2016-11-30 22:57:11 +01:00
johnstevenson
c1058cf37c
Fix XdebugHandler test
2016-11-21 11:52:56 +00:00
johnstevenson
379fb70ad9
Use random name for tmp ini and delete after use
...
Thanks to Patrick Rose for reporting this issue.
2016-11-20 10:59:05 +00:00
Jordi Boggiano
8ad6385ffb
Merge remote-tracking branch 'fabpot/more-debug'
2016-11-06 18:18:52 +01:00
Jordi Boggiano
43903a3979
Merge branch '1.2'
2016-11-06 17:38:53 +01:00
Jordi Boggiano
98a599d6c3
Merge pull request #5843 from stof/enforce_map_types
...
Enhance the json schema with validation for map objects
2016-11-06 17:02:38 +01:00
Jordi Boggiano
9801d831ed
Merge pull request #5852 from fabpot/io-fix
...
Remove usage of echo when executing Composer script
2016-11-06 16:49:08 +01:00
Jordi Boggiano
d6499b7c4a
Merge pull request #5748 from kassner/hgdriver-bitbucket
...
HgDriver does not identify bitbucket mercurial repos correctly
2016-11-06 12:36:13 +01:00
Fabien Potencier
103624d4ed
Remove usage of echo when executing Composer script
2016-11-05 22:10:39 -07:00
Christophe Coevoet
1882f9a502
Enhance the json schema with validation for map objects
2016-11-03 13:19:20 +01:00
Jordi Boggiano
208086d8e3
Merge remote-tracking branch 'channelgrabber/GitSpeedIncrease'
2016-11-03 12:08:28 +01:00
Jordi Boggiano
adee0ff132
Fix tests
2016-11-03 11:30:35 +01:00
Jordi Boggiano
e38ebefc7e
Update packagist default repo to be packagist.org
2016-11-03 11:00:40 +01:00
Fabien Potencier
57ec0d1815
added more information in the output
2016-10-29 11:37:23 -07:00
Richard Heelin
c2f6c61f56
Updated the tests to match the new command that is executed
2016-10-21 15:49:27 +01:00
Jordi Boggiano
d9328ed5ae
Merge pull request #5753 from alcohol/use-rfc3339-in-arraydumper
...
bring arraydumper in line with json schema spec and packagist
2016-10-12 16:51:59 +02:00
Konstantin.Myakshin
dc70b40d34
Use implode instead of join
2016-10-11 16:52:29 +03:00
Jordi Boggiano
d1867d5859
Merge branch '1.2'
2016-10-10 18:21:22 +02:00
Jordi Boggiano
5ee22f25ba
Rework JSON matching to use a properly recursive pattern, fixes #5771
2016-10-10 18:20:53 +02:00
Jordi Boggiano
092dec9596
Add failing test for #5771
2016-10-10 18:12:24 +02:00
Jordi Boggiano
183398fe5e
Merge pull request #5717 from berlinger-rarents/fix/5584_anon_redirect_bitbucket
...
prevent (prompt for) bitbucket auth when it redirected
2016-10-10 14:11:24 +02:00
Jordi Boggiano
c540dace8c
Merge pull request #5765 from fabpot/remove-obsolete-code
...
removed obsolete code
2016-10-08 11:28:19 +02:00
Jordi Boggiano
4cd6eabdba
Merge branch '1.2'
2016-10-08 11:27:52 +02:00
Fabien Potencier
2853e82400
removed obsolete code
2016-10-06 11:56:54 -07:00
Christophe Coevoet
d5810c8a36
Fix namespace for tests for consistency
2016-10-05 10:45:22 +02:00
Rob Bast
a45ae5f585
fix test
2016-10-04 13:23:25 +02:00
Rafael Kassner
34ec5fba58
Code review fixes
2016-10-03 13:35:48 +02:00
Rafael Kassner
44634a689d
HgDriver does not identify bitbucket mercurial repos correctly
2016-10-03 13:17:07 +02:00
Yanick Witschi
4a769a785c
Reduce calls on Rule::getHash()
2016-09-30 17:25:41 +02:00
Roel Arents
d338a95174
use seldaek's bitbucket repo for unit tests instead of 3rd party
2016-09-29 17:29:09 +02:00
Jordi Boggiano
117e09ca48
Merge pull request #5728 from alcohol/pool-priority-matters
...
add a test that asserts pool priority matters
2016-09-29 08:01:00 +02:00
berlinger-rarents
8845ea467a
try bitbucket downloads first time without auth
...
also add tests for #5584
2016-09-28 19:08:24 +02:00
Rob Bast
9cbcda9ae6
add test that asserts pool priority matters
...
also switch assertEquals for assertSame
2016-09-28 09:34:08 +02:00
Rob Bast
9f2bd34c87
test copied from #5724
2016-09-27 17:39:44 +02:00
Rob Bast
b4fd19aae4
add test exposing the problem
2016-09-27 14:45:19 +02:00
Jordi Boggiano
048a801fce
Merge pull request #5698 from johnstevenson/restart2
...
Simplify XDebugHandler restart process
2016-09-23 16:35:12 +02:00
johnstevenson
e9a97004c5
Simplify XdebugHandler restart process
2016-09-23 13:50:54 +01:00
Rob Bast
4213fbc8c6
does not apply for hhvm
2016-09-23 13:27:15 +02:00
Rob Bast
181b172e77
test cases for #5701
2016-09-23 12:22:45 +02:00
Rob Bast
1cf4ecd648
remove env variable after test assertion
2016-09-21 11:48:32 +02:00
Fabien Potencier
e83f7c2929
Fix process timeout when set to 0
2016-09-21 11:48:10 +02:00
Rob Bast
2ef9cde060
remove env variable after test assertion
2016-09-21 11:34:28 +02:00
Fabien Potencier
2c77fd6801
Fix process timeout when set to 0
2016-09-20 18:25:05 -07:00
Jordi Boggiano
68861c48ed
Merge branch '1.2'
2016-09-17 13:27:39 +02:00
SpacePossum
2ae0800cd3
Remove useless concat.
2016-09-16 14:50:34 +02:00
Jordi Boggiano
20ee689bb4
Upgrade json-schema to allow v3 and upgrade other deps
2016-09-14 18:06:37 +02:00
Jordi Boggiano
2ffa1148a9
Merge branch '1.2'
2016-09-12 19:06:26 +02:00
Den Girnyk
41eb297248
Add tests
2016-09-12 17:20:58 +02:00
Jordi Boggiano
285c4a1ac6
Merge branch '1.2'
2016-09-12 16:56:32 +02:00
Jordi Boggiano
ff7daf0bd4
Fix handling of paths on windows when cwd is root of drive, fixes #5554
2016-09-12 16:56:04 +02:00
Jordi Boggiano
f0f932fca4
Fix classmap test on windows
2016-09-10 12:52:23 +02:00
Jordi Boggiano
f63f1ff95f
Merge remote-tracking branch 'davidolrik/master'
2016-09-10 12:32:00 +02:00
Jordi Boggiano
70ccac6ba2
Merge pull request #5532 from zomberg/class_map_generator_test
...
Added test for 'dump' method of ClassMapGenerator class
2016-09-10 12:28:36 +02:00
Jordi Boggiano
994211523c
Merge remote-tracking branch 'johnstevenson/restart'
2016-09-10 12:09:29 +02:00
Jordi Boggiano
6ec8b2bfd6
Update locker tests
2016-09-10 11:41:07 +02:00
Jordi Boggiano
788f32ac93
Allow running test suite with osx tar, fixes #5662
2016-09-10 11:38:52 +02:00
johnstevenson
0256f62b3b
Fix and rationalize tests
2016-09-06 20:17:18 +01:00
johnstevenson
589b1d6fa2
Fix hhvm not running tests in a separate process
2016-09-06 16:35:56 +01:00
johnstevenson
896d1d71f8
Use ConsoleOutput to determine color support
2016-09-06 14:57:18 +01:00
johnstevenson
e381abeec0
Simplify argv handling
2016-09-03 19:00:41 +01:00
Jordi Boggiano
3e010fc332
Merge pull request #5591 from ianlet/master
...
Use https url of the repository instead of ssh given gitlab project is public
2016-09-02 19:03:55 +02:00
Matthew "Juniper" Barlett
ac41bb0615
Fix for issue #5631
...
- Add " ( and ) as valid characters in author name
- Add relavent unit tests
2016-09-02 18:59:10 +02:00
Jordi Boggiano
edddae42db
Revert default change from #5603
2016-08-30 15:20:20 +02:00
John Whitley
4479b8a690
Squashed commit of the following:
...
commit 3994b556dcffcde7b1801c8bc712f3127e8f8e7c
Author: John Whitley <john.whitley@berea.eu>
Date: Tue Aug 16 09:02:53 2016 +0100
https://github.com/composer/composer/issues/5600
This alters the default flag for loadOptions in
\Composer\Package\Loader\ArrayLoader to true; and alters the assumption
of the test to reflect this change.
**Rationale**
The `\Composer\Package\Loader\ArrayLoader` test (defined in
tests/Composer/Test/Package/Loader/ArrayLoaderTest.php) assumed that a
new `\Composer\Package\Loader\ArrayLoader` instance would be always
created with the optional flag loadOptions set to true.
```php
$this->loader = new \Composer\Package\Loader\ArrayLoader(null, true);
```
This change alters the general case to reflect the default assumption as
defined in the test.
commit b75fc4ad7238bc50f724bd29446ccbc33e82c34c
Author: John Whitley <john.whitley@berea.eu>
Date: Mon Aug 15 16:55:27 2016 +0100
Altered the test for ArrayLoader to use the default loadConfig flag, and to test the true and false states for the loadConfig flag
2016-08-30 15:20:15 +02:00