Jose Miguel Pérez Ruiz
b2f62bc06c
Fix Init Command to accept author names with Unicode combining diacritical marks
8 years ago
Guillaume ZITTA
f89e01d622
switch first / fallback order
8 years ago
Jordi Boggiano
843877cd6d
Fix hg version guessing, fixes #6236 , fixes #6235
8 years ago
Filippo Tessarotto
04b1ddb79f
VersionGuesser test for HG
8 years ago
Jordi Boggiano
122e422682
CS fixes
8 years ago
Jordi Boggiano
ddef9923b0
Merge branch '1.3'
8 years ago
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
8 years ago
Jordi Boggiano
f200343cf2
Fix gitlab driver issues not asking for auth when token is missing, and not falling back properly to git driver
8 years ago
Jordi Boggiano
44ea284ab9
Merge remote-tracking branch 'stefangr/implement_bitbucket_api_v2'
8 years ago
Jordi Boggiano
c61a1c7523
Merge branch '1.3'
8 years ago
Jordi Boggiano
260b85882f
Merge remote-tracking branch 'dzuelke/installmsgs' into 1.3
8 years ago
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
8 years ago
Guillaume ZITTA
abf06913a2
remove useless expect (already done by docstring)
8 years ago
Guillaume ZITTA
921ffe741f
Cleaner fallback Algorithm
8 years ago
Jordi Boggiano
20c16f18f5
Merge branch '1.3'
8 years ago
Jordi Boggiano
f3d0e4660d
Fix urlencoding of gitlab dots, fixes #6064
8 years ago
David Zuelke
2d36324e99
streamline install progress messages
8 years ago
Stefan Grootscholten
5dbdefdd72
Implement ordering in requesting tags and branches.
...
Update unit test with latest changes.
8 years ago
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.
8 years ago
Stefan Grootscholten
d25c483231
Implement Bitbucket API version 2.0 (where applicable).
8 years ago
Stefan Grootscholten
512750a20e
Add more tests to cover the new functionality.
8 years ago
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.
8 years ago
jbixler
dac51c7f4b
Add ignore filters option to archive command
8 years ago
Christophe Coevoet
1cb0ec7911
Resolve references in ComposerSchemaTest
8 years ago
johnstevenson
2b8ad7dc2a
Clear xdebug version if restart fails, fixes #5995
8 years ago
Jordi Boggiano
2782d37a15
Merge pull request #5992 from AnrDaemon/fix-git-skips-proper
...
Properly skip GitDownloaderTest if git is not available
8 years ago
AnrDaemon
1d2a949e3e
Properly fix git excludes.
...
Mindless copy-paste never gets old. Sorry. This is fixed proper this time.
8 years ago
AnrDaemon
810e70d234
Fix __DIR__/getcwd() inconsistency.
8 years ago
Jordi Boggiano
df5fd3ba09
Cache executable finder calls
8 years ago
AnrDaemon
ab70601700
Skip git-related tests if no git found.
8 years ago
johnstevenson
3928f1f3be
Set xdebug version in environment, fixes #5967
8 years ago
Jordi Boggiano
a1b468ea50
Fix git shortening, it is sunday..
8 years ago
Jordi Boggiano
98c5f825e0
Fix tests and regression in @ref script handling
8 years ago
Jordi Boggiano
4d77ffcb4a
Merge branch 'simplify-output'
8 years ago
Jordi Boggiano
4d082f77b8
Simplify composer output to take less lines
8 years ago
Jordi Boggiano
e54c7478ee
Attempt at fixing support for git 2.11, refs #5942
8 years ago
Jordi Boggiano
1dcb2b5758
Merge remote-tracking branch 'nicolas-grekas/apcu'
8 years ago
Jordi Boggiano
e9d04f2b2d
Merge branch '1.2'
8 years ago
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.
8 years ago
Dries Vints
2ab7df5566
Do not add newlines to output
8 years ago
Nicolas Grekas
6d4e60b991
Add --apcu-autoloader option to enable APCu caching of found/not-found classes
8 years ago
Jordi Boggiano
f3f063e3e2
Merge pull request #5888 from alcohol/array-default
...
use array as default value
8 years ago
Rob Bast
873f17261c
try to fix test instead of guarding implementation
8 years ago
Jordi Boggiano
8a2f597db3
Fix tests
8 years ago
Jordi Boggiano
91e7372c6e
Backport update packagist default repo to be packagist.org
8 years ago
johnstevenson
c1058cf37c
Fix XdebugHandler test
8 years ago
johnstevenson
379fb70ad9
Use random name for tmp ini and delete after use
...
Thanks to Patrick Rose for reporting this issue.
8 years ago
Jordi Boggiano
8ad6385ffb
Merge remote-tracking branch 'fabpot/more-debug'
8 years ago
Jordi Boggiano
43903a3979
Merge branch '1.2'
8 years ago
Jordi Boggiano
98a599d6c3
Merge pull request #5843 from stof/enforce_map_types
...
Enhance the json schema with validation for map objects
8 years ago
Jordi Boggiano
9801d831ed
Merge pull request #5852 from fabpot/io-fix
...
Remove usage of echo when executing Composer script
8 years ago
Jordi Boggiano
d6499b7c4a
Merge pull request #5748 from kassner/hgdriver-bitbucket
...
HgDriver does not identify bitbucket mercurial repos correctly
8 years ago
Fabien Potencier
103624d4ed
Remove usage of echo when executing Composer script
8 years ago
Christophe Coevoet
1882f9a502
Enhance the json schema with validation for map objects
8 years ago
Jordi Boggiano
208086d8e3
Merge remote-tracking branch 'channelgrabber/GitSpeedIncrease'
8 years ago
Jordi Boggiano
adee0ff132
Fix tests
8 years ago
Jordi Boggiano
e38ebefc7e
Update packagist default repo to be packagist.org
8 years ago
Fabien Potencier
57ec0d1815
added more information in the output
8 years ago
Richard Heelin
c2f6c61f56
Updated the tests to match the new command that is executed
8 years ago
Jordi Boggiano
d9328ed5ae
Merge pull request #5753 from alcohol/use-rfc3339-in-arraydumper
...
bring arraydumper in line with json schema spec and packagist
8 years ago
Konstantin.Myakshin
dc70b40d34
Use implode instead of join
8 years ago
Jordi Boggiano
d1867d5859
Merge branch '1.2'
8 years ago
Jordi Boggiano
5ee22f25ba
Rework JSON matching to use a properly recursive pattern, fixes #5771
8 years ago
Jordi Boggiano
092dec9596
Add failing test for #5771
8 years ago
Jordi Boggiano
183398fe5e
Merge pull request #5717 from berlinger-rarents/fix/5584_anon_redirect_bitbucket
...
prevent (prompt for) bitbucket auth when it redirected
8 years ago
Jordi Boggiano
c540dace8c
Merge pull request #5765 from fabpot/remove-obsolete-code
...
removed obsolete code
8 years ago
Jordi Boggiano
4cd6eabdba
Merge branch '1.2'
8 years ago
Fabien Potencier
2853e82400
removed obsolete code
8 years ago
Christophe Coevoet
d5810c8a36
Fix namespace for tests for consistency
8 years ago
Rob Bast
a45ae5f585
fix test
8 years ago
Rafael Kassner
34ec5fba58
Code review fixes
8 years ago
Rafael Kassner
44634a689d
HgDriver does not identify bitbucket mercurial repos correctly
8 years ago
Yanick Witschi
4a769a785c
Reduce calls on Rule::getHash()
8 years ago
Roel Arents
d338a95174
use seldaek's bitbucket repo for unit tests instead of 3rd party
8 years ago
Jordi Boggiano
117e09ca48
Merge pull request #5728 from alcohol/pool-priority-matters
...
add a test that asserts pool priority matters
8 years ago
berlinger-rarents
8845ea467a
try bitbucket downloads first time without auth
...
also add tests for #5584
8 years ago
Rob Bast
9cbcda9ae6
add test that asserts pool priority matters
...
also switch assertEquals for assertSame
8 years ago
Rob Bast
9f2bd34c87
test copied from #5724
8 years ago
Rob Bast
b4fd19aae4
add test exposing the problem
8 years ago
Jordi Boggiano
048a801fce
Merge pull request #5698 from johnstevenson/restart2
...
Simplify XDebugHandler restart process
8 years ago
johnstevenson
e9a97004c5
Simplify XdebugHandler restart process
8 years ago
Rob Bast
4213fbc8c6
does not apply for hhvm
8 years ago
Rob Bast
181b172e77
test cases for #5701
8 years ago
Rob Bast
1cf4ecd648
remove env variable after test assertion
8 years ago
Fabien Potencier
e83f7c2929
Fix process timeout when set to 0
8 years ago
Rob Bast
2ef9cde060
remove env variable after test assertion
8 years ago
Fabien Potencier
2c77fd6801
Fix process timeout when set to 0
8 years ago
Jordi Boggiano
68861c48ed
Merge branch '1.2'
8 years ago
SpacePossum
2ae0800cd3
Remove useless concat.
8 years ago
Jordi Boggiano
20ee689bb4
Upgrade json-schema to allow v3 and upgrade other deps
8 years ago
Jordi Boggiano
2ffa1148a9
Merge branch '1.2'
8 years ago
Den Girnyk
41eb297248
Add tests
8 years ago
Jordi Boggiano
285c4a1ac6
Merge branch '1.2'
8 years ago
Jordi Boggiano
ff7daf0bd4
Fix handling of paths on windows when cwd is root of drive, fixes #5554
8 years ago
Jordi Boggiano
f0f932fca4
Fix classmap test on windows
8 years ago
Jordi Boggiano
f63f1ff95f
Merge remote-tracking branch 'davidolrik/master'
8 years ago
Jordi Boggiano
70ccac6ba2
Merge pull request #5532 from zomberg/class_map_generator_test
...
Added test for 'dump' method of ClassMapGenerator class
8 years ago
Jordi Boggiano
994211523c
Merge remote-tracking branch 'johnstevenson/restart'
8 years ago
Jordi Boggiano
6ec8b2bfd6
Update locker tests
8 years ago
Jordi Boggiano
788f32ac93
Allow running test suite with osx tar, fixes #5662
8 years ago
johnstevenson
0256f62b3b
Fix and rationalize tests
8 years ago
johnstevenson
589b1d6fa2
Fix hhvm not running tests in a separate process
8 years ago
johnstevenson
896d1d71f8
Use ConsoleOutput to determine color support
8 years ago
johnstevenson
e381abeec0
Simplify argv handling
8 years ago
Jordi Boggiano
3e010fc332
Merge pull request #5591 from ianlet/master
...
Use https url of the repository instead of ssh given gitlab project is public
8 years ago
Matthew "Juniper" Barlett
ac41bb0615
Fix for issue #5631
...
- Add " ( and ) as valid characters in author name
- Add relavent unit tests
8 years ago
Jordi Boggiano
edddae42db
Revert default change from #5603
8 years ago
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
8 years ago
David Jack Wange Olrik
2c84be47c2
Add support for seamless execution of local binaries
...
Projects that add binaries to `vendor-bin` can now execute those via the same command as projects that consume them without installing them first.
In list overview local commands have a `(local)` tag to distinguish them from commands installed in `vendor-bin`.
Local binaries take precedence over `vendor-bin` which takes precedence over binaries in path.
8 years ago
Jad Bitar
8625efd551
Fix support for testing exit code
...
The `$sectionData` was being overwritten, causing its assertion
(`$this->assertSame()`) to fail.
8 years ago
ianlet
5874132857
return https url of the repository given gitlab project is public
8 years ago
johnstevenson
586eb3bb41
Restart with xdebug disabled
8 years ago
Vyacheslav Pavlov
108560b9c4
Clean up temp files after a test.
8 years ago
Vyacheslav Pavlov
03995d6caa
Added test for 'dump' method of ClassMapGenerator class
8 years ago
Jordi Boggiano
066550054b
Fix tests
8 years ago
Jordi Boggiano
334d0cce6b
Make sure we do not clone from local mirror if mirroring failed
8 years ago
Jordi Boggiano
8ffe224c0d
Merge remote-tracking branch 'stefangr/fix_minor_bitbucket_oauth_issues'
8 years ago
Jordi Boggiano
4998ee27b3
Re-use mirror code from the git driver, refs #5384
8 years ago
Jordi Boggiano
55e90093a4
Merge remote-tracking branch 'marvil07/faster-git-clones-using-cache'
8 years ago
Jordi Boggiano
59596ff012
Make sure we do not overwrite binaries but only re-create missing ones, refs #5127
8 years ago
Jordi Boggiano
88d5b74c74
Merge remote-tracking branch 'j0k3r/re-install-binaries'
8 years ago
Stefan Grootscholten
9b00713a67
Update unit test for Bitbucket util
8 years ago
bohwaz
be013e5572
Fossil VCS tests
8 years ago
Jordi Boggiano
894b53c115
Merge pull request #5454 from pierredup/type-search
...
Added type option to search
8 years ago
Pierre du Plessis
6a557e45b8
Added --type option to search
8 years ago
Jordi Boggiano
39c2c8c30a
Add test for password escaping
8 years ago
Marco Villegas
869b3ef954
New test to check git download behavior with cache.
8 years ago
Marco Villegas
cb6cfa9635
Isolate config setup to make it reusable at GitDownloaderTest.
8 years ago
Stefan Grootscholten
78fcb5a366
Add support section to composer data for bitbucket repositories.
8 years ago
Stefan Grootscholten
ccfd9018b8
Add unit tests for the GitBitbucketDriver class.
8 years ago
Stefan Grootscholten
2d52531365
Add unit tests for the Bitbucket class.
8 years ago
Jordi Boggiano
73d9a4717d
Update list of ciphers /cc @cs278
8 years ago
Michele Locati
097003b5bb
Add test case for strict types declaration
8 years ago
Marco Villegas
b5c55d5167
Adjust GitDownloaderTest to include for the new getVersion() method in Git.
8 years ago
Luis Faceira
1d733ba21a
GitDownloaderTest uses temp dir as composer home config
...
When creating a DownloaderMock a home config dir is
ensured to exist, so that no test fails for lack of it
that on a regular run would be set by the Factory
8 years ago
Jordi Boggiano
57ae6d97b6
Merge branch '1.1'
8 years ago
ReenExe
53fc30fe56
clear code
8 years ago
Andreas Möller
a3b49ae44f
Enhancement: Assert that no warning is issued when using exact version constraint for unstable package
8 years ago
Tomáš Markacz
c30dd16e32
add missing validation for rss chanel section in composer schema
8 years ago
Lucas CHERIFI
7e34d9ab97
Typo fix ;-)
8 years ago
Jordi Boggiano
13f4d2afd3
Fix #refs handling, fixes #5291
8 years ago
Jordi Boggiano
72362a085a
Fix #refs handling, fixes #5291
8 years ago
Jordi Boggiano
ed0a5ff2a6
Merge branch '1.1'
8 years ago
Hiraku NAKANO
8501bb71e2
Drop dependency on http://www.example.com
8 years ago
Jordi Boggiano
1aa31caec5
Clean up ApplicationTest
8 years ago
Jordi Boggiano
cc793eff6f
Clean up ApplicationTest
8 years ago
Jordi Boggiano
b8974a3e13
Merge branch '1.1'
8 years ago
Jordi Boggiano
591cbcee12
Avoiding defining plugin commands using the local project plugins, refs #5277
8 years ago
Bilal Amarni
92207da83a
add isProxyCommand() to BaseCommand
8 years ago
Jordi Boggiano
d5ed45c3c7
Fix test
8 years ago