Nils Adermann
1ccf4b0fc3
Correct the tests for dist urls for github
11 years ago
Nils Adermann
5ed18d9aa2
Fail over from source to dist and vice versa when downloads fail
...
Any RuntimeException descendent will be caught and cause another
download attempt using either source or dist depending on what was
attempted first.
11 years ago
Nils Adermann
33e872d7d3
Merge pull request #2733 from naderman/limit-replace-provide
...
Whitelist packages with names matching those specified before generating rules
11 years ago
Nils Adermann
5b80144ad0
Resolve job packages after whitelist generation
11 years ago
Nils Adermann
ec12b8a675
Add tests for the changes in #2690
11 years ago
Nils Adermann
3148ffd355
Whitelist packages with names matching those specified before generating rules
...
Addresses #2690 doesn't do any performance optimisations yet which we
could do now
11 years ago
Jordi Boggiano
eb3384445b
Merge pull request #2188 from Danack/GetRootComposerJson
...
Find root composer.json in zip artifact more reliably.
11 years ago
Danack
e4d4a7ae17
Added comment for generating files.
11 years ago
Danack
24aba5b51f
Moved file back to correct location. (+1 squashed commit)
...
Squashed commits:
[eec32aa] Updated detection to only allow composer.josn in root or first level dir.
11 years ago
Olivier Laviale
40e484ed38
Fixed an issue that would lead to scattered autoloading files
11 years ago
Danack
bc76e0014b
Moved tests that are expected to work into their own directory.
...
Added test for composer.json in incorrect directory.
11 years ago
Jordi Boggiano
0df9c803a5
Merge pull request #2718 from sndpl/issue/2613
...
Fix for #2613
11 years ago
Sandy Pleyte
3a2815b778
Added extra unit test from the example in the ticket.
11 years ago
Jordi Boggiano
5d4900e79d
Add --no-checkout flag to avoid checking out the default branch first, fixes #2717
11 years ago
Sandy Pleyte
f92f2f45a9
Fix for #2613 , when using php < 5.4 there was an unnecessary backslash before each utf-8 char. The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash.
11 years ago
Sandy Pleyte
7a902ed96d
Fix for #2613 , when using php < 5.4 there was an unnecessary backslash before each utf-8 char. The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash.
11 years ago
Jordi Boggiano
9d2d828b70
Merge remote-tracking branch 'h4cc/master'
11 years ago
Jordi Boggiano
b5dd537422
Merge pull request #2648 from zczapran/unit_tests_for_jsonvalidationexception
...
[tests] Unit tests for JsonValidationException class
11 years ago
Jordi Boggiano
f72066de90
Merge pull request #2649 from zczapran/bugfix/git_exclude_filter_rules_too_broad
...
[Archiver] Rules in GitExcludeFilter are too broad
11 years ago
Nicolas Grekas
00a6f8e38d
dedicated scope isolation function for autoload_real
11 years ago
Julius Beckmann
ed5da804dd
Fixed handling of Metapackages in DownloadManager.
...
The "getDownloaderForInstalledPackage" returns null for "metapackage" and the download(), update() and remove() methods did not handle this return value correctly.
11 years ago
Nils Adermann
aef0483cc9
Merge pull request #2667 from nicolas-grekas/master
...
scope isolation for user includes
11 years ago
Nicolas Grekas
6d7b9afc4b
scope isolation for user includes
11 years ago
Jordi Boggiano
75cd91657a
Merge remote-tracking branch 'jeromemacias/fix_psr4_classmap_generator'
11 years ago
Andreas Hennings
fcf8e7f515
Random docblock improvements in AutoloadGeneratorTest.
11 years ago
Andreas Hennings
6a9fd1dd60
rename \$package to \$mainPackage in AutoloadGeneratorTest::testOverrideVendorsAutoloading() for clarity.
11 years ago
Andreas Hennings
bb26152de2
docblock comments on properties in AutoloadGeneratorTest
11 years ago
Andreas Hennings
cab6943df0
AutoloadGeneratorTest::testOverrideVendorsAutoloading() - break autoload definitions to multiple lines.
11 years ago
Andreas Hennings
084c11ef51
AutoloadGeneratorTest::testMainPackageAutoloadingWithTargetDir() - Remove PSR-4 from the package in target-dir test, since it is incompatible with target-dir.
11 years ago
Jérôme Macias
01cd990995
Fix PSR-4 autoload classmap generator
11 years ago
Zbigniew
a4a9d0f0e4
[Archiver] Rules in GitExcludeFilter are too broad
11 years ago
Zbigniew
94635c0d14
[tests] Unit tests for JsonValidationException class
11 years ago
Jordi Boggiano
99f5b5a238
Fix backtracking issue in json manipulations, fixes #2583
11 years ago
Jordi Boggiano
3c5000ad7f
CS tweaks and cleanups, allow "" to set fallback dirs, refs #2459
11 years ago
Jordi Boggiano
b23742e30c
Merge remote-tracking branch 'donquixote/feature/psr4-complete'
11 years ago
Luís Otávio Cobucci Oblonczyk
0f2c0ab389
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
11 years ago
Pascal Borreli
2f4df9d459
Fixed typos
11 years ago
Andreas Hennings
0a4b18ce86
More interesting generator tests for PSR-4.
11 years ago
Andreas Hennings
bda2bcac13
Fix indentation of assignment in AutoloadGeneratorTest
11 years ago
Andreas Hennings
8966376f40
Verify generation of autoload_psr4.php even if empty.
11 years ago
Andreas Hennings
e4bbd83f13
expected message in ValidatingArrayLoaderTest should also contain psr-4 as allowed key.
11 years ago
Jordi Boggiano
80499bb024
Detect ~> misuse and suggest fix, fixes #2476
11 years ago
Morgan BRUNOT
ca7cb68dd5
Check exclude from downloaded composer.json
11 years ago
mwhittom
a8084e46ff
Added error handling and error messages around missing perforce driver, invalid username/password
11 years ago
Andreas Hennings
bbf6278905
AutoloadGenerator to support PSR-4. Tests included.
11 years ago
Andreas Hennings
2c98813431
Add unit tests for ClassLoader, covering PSR-0 and PSR-4.
11 years ago
Jordi Boggiano
dea246186d
Merge pull request #2453 from mirkobeine/#2441-V2
...
Use 'cache-files-ttl' for cache gc, fixes #2441
11 years ago
user
a956ce9bb1
Use 'cache-files-ttl' for cache gc, fixes #2441
...
The configuration option 'cache-ttl' was used instead of 'cache-files-ttl' to determine
whether or not a cache gc should be performed.
* changed 'cache-ttl' to 'cache-files-ttl' to determine if a gc should be performed
* refactored FileDownloader to allow for easier testing
* added test to ensure that the gc is called with the proper config option
11 years ago
Jordi Boggiano
e126c92525
Fix exit codes, cc @tyrael
11 years ago
Jordi Boggiano
5156a60216
Add test for RepositoryManager repo creation
11 years ago
ptarjan
09c0d971d3
don't require the error message have the first line of HTTP output in it
11 years ago
Jordi Boggiano
8398c9f2ab
Fix target-dir update checks, fixes #2395
11 years ago
Gennady Feldman
e5045ce215
Per request from Jordi Boggiano (Seldaek) making Config 2nd parameter in supports()
11 years ago
Gennady Feldman
93ebfd54b1
Adding Config as parameter to the Driver::supports(), updating all drivers, user and tests.
11 years ago
Jordi Boggiano
7148b22414
Add github-domains config value for GitHub Enterprise setups, fixes #728
...
Signed-off-by: Gennady Feldman <gena01@gmail.com>
11 years ago
Jordi Boggiano
f5df1d6a9b
Fix cs
11 years ago
Jordi Boggiano
e2671b6510
Add test and fix patch for #2304 , refs #2341
11 years ago
Jordi Boggiano
08243ce2e3
Fix handling of urlencoded user and password in proxy urls, fixes #2339
11 years ago
Jordi Boggiano
7cfeccb101
Merge pull request #2327 from pl-github/with-dependencies
...
Change dependency processing for update with whitelisted packages
11 years ago
Jordi Boggiano
7c83e6a04a
Merge remote-tracking branch 'GromNaN/git-cache'
11 years ago
Jordi Boggiano
f8be812a49
Merge remote-tracking branch 'origin/master'
11 years ago
Fabian Grutschus
a6823d2f9b
non-deep check returns allways false
11 years ago
Phillip Look
07a7284ffc
Change dependency processing for update with whitelisted packages
...
By default dependencies of white listed packages are no longer installed automaticaly.
To Install dependencies of whitelisted packages use --with-dependencies.
- rework after review comments
- precise documentation of option
- add missing punctuation marks
11 years ago
Nils Adermann
565f86f30d
Fix stream context option test to really only verify content-type is last
11 years ago
Nils Adermann
42dd2f2ee8
Check only part of the error message as it's different in hhvm
11 years ago
Fabian Grutschus
20854a50b4
Removed unnecessary test and just check for return code
11 years ago
Fabian Grutschus
0c5bd559f2
Changes comparsion to strict and removed a comment
11 years ago
Fabian Grutschus
5ae5963acd
Fix for Preforce utility does not check if p4 command exists
11 years ago
Christophe Coevoet
6cc95c43e3
Add a warning for unbound constraints in the validating loader
...
Closes #2165
11 years ago
Jordi Boggiano
2b36106168
Fix tests, refs #2184
11 years ago
Jordi Boggiano
0fbb4cbd16
CS fixes and renaming a few methods, refs #2184
11 years ago
Jordi Boggiano
11a0d16ccc
CS fixes
11 years ago
Jordi Boggiano
9a806658d6
Merge remote-tracking branch 'vuhl/master'
...
Conflicts:
src/Composer/Factory.php
11 years ago
Jérôme Tamarelle
836986faf3
Add temp composer home for GitDriver test using cache
11 years ago
Martin Hasoň
3c0a620ad5
Fixed path analysis
11 years ago
Jordi Boggiano
807600b255
Fix edge case where one adds a target-dir on a package that didnt have one before, refs #2279
11 years ago
Jordi Boggiano
a813867065
Merge remote-tracking branch 'chx/913'
11 years ago
Jordi Boggiano
38917c2047
Add parallel build to travis script
11 years ago
Karoly Negyesi
e32e4ad490
change the test to test for a target dir change
11 years ago
Karoly Negyesi
1a69d0a2a7
style fixes
11 years ago
Karoly Negyesi
6c393c1c69
use the more generic removeDirectory
11 years ago
Karoly Negyesi
24c9ef72d6
make LibraryInstallerTest a little more strict
11 years ago
Karoly Negyesi
c6ec739766
allow injecting a mock filesystem into LibraryInstaller and fix LibraryInstallerTest
11 years ago
Karoly Negyesi
f82c820a32
do not try to test update inside fixtures
11 years ago
mwhittom
8a319a719b
Fixed issue with non-streaming perforce depots, also fixed issue where PerforceDownloader was not logging in
11 years ago
Martin Hasoň
e949038c0f
Removed duplication of logic of an installation manager in a plugin manager
11 years ago
mwhittom
2e737ac439
updated to replace double-quotes with single quotes
11 years ago
mwhittom
8207518e04
Updated to clean up code and rename variables to camelcase
11 years ago
mwhittom
f7d9f3d8b4
Fixed Test method setUp to be protected instead of private.
11 years ago
mwhittom
07d46aa3c3
Fixed spacing issues for PSR-2
11 years ago
Nils Adermann
242c58c789
Merge pull request #2179 from naderman/plugins
...
Plugins
11 years ago
Nils Adermann
f249fd804f
Correctly require composer plugin api version in test plugins
11 years ago
Nils Adermann
6c2e998e40
Add missing use statement
11 years ago
mwhittom
d77bd49301
Replaced RemoteFileSystemTest with version from main branch
11 years ago
mwhittom
774a55befd
Updated to match psr-2 spec, fixed header comments
11 years ago
matt-whittom
f737e49aae
Fixed issue with downloader assuming repository would be VcsRepository
11 years ago
matt-whittom
8379985166
Updated/Standardized header comments
11 years ago
matt-whittom
dd81449998
Updated to remove vfsStreams (no longer needed by tests)
...
Updated Perforce to cleanup, modified VcsRepository to call cleanup on Driver class
Updated tests, perforce constructor to make tests cleaner/easier
11 years ago
matt-whittom
997b1b5d46
Replaced changes in RemoteFilesystemTest with changes from main branch.
11 years ago
matt-whittom
1015957659
Added tests and code for tests
11 years ago