Jordi Boggiano
98c5f825e0
Fix tests and regression in @ref script handling
8 years ago
Jordi Boggiano
43903a3979
Merge branch '1.2'
8 years ago
Christophe Coevoet
d5810c8a36
Fix namespace for tests for consistency
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
ianlet
5874132857
return https url of the repository given gitlab project is public
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
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
Jordi Boggiano
ad5951218b
Also trim trailing slashes in PathRepo, refs #5164
9 years ago
Jordi Boggiano
6f42b9c865
Disable git, svn, http protocols for VCS downloaders, fixes #4968
9 years ago
Jordi Boggiano
406e087a46
Stop running PEAR Repo test suite as it fails and is kinda irrelevant at this point
9 years ago
Rob Bast
dc2f201152
add trailing / and updated diagnose command
9 years ago
Rob Bast
4d975c49aa
fix mocks
9 years ago
Franz Liedke
f47c2c9ed7
Add test case for RepositoryManager::prependRepository method
9 years ago
Jordi Boggiano
8a2d1a2ee2
Make artifact paths in lock file cross-platform, fixes #3832
9 years ago
Rob Bast
4600deac68
fix #4925
9 years ago
Niels Keurentjes
aa6b2e5b63
Modernized unit test still depending on age old BC code.
9 years ago
Remi Collet
ae5de98db1
make this test more robust, not relying on result order which may vary
9 years ago
Niels Keurentjes
0dab63e050
Unified all Windows tests throughout the code.
9 years ago
Rob Bast
f829a160fb
use a proper tmp directory
...
this test failed on OSX before, trying to create a directory at the root of the filesystem
9 years ago
Jordi Boggiano
1818b95149
CS fixes
9 years ago
Jordi Boggiano
783e0aec8a
Merge remote-tracking branch 'alcohol/unique-test-directories'
9 years ago
Rob Bast
adf3b956d0
try to use unique test directories
...
any tests that use the filesystem should have their own unique directory, as we run our test suite in parallel and
cleanup of tests (removing directories) should not interfere with currently running tests
9 years ago
Niels Keurentjes
aef4820abe
Normalization of URLs caused discrepancy on Windows with unit tests.
9 years ago
Rob Bast
c292122791
it looks like php 5.3.3 might not have openssl extension?
9 years ago
Jaapio
df92cb09ab
extract regex to const. To be able to reuse it
9 years ago
Jaapio
b471440ea0
Adds support for gitlab install in subfolder
...
Since gitlab can be hosted on any url also subdirectories should be
supported. (e.g https://mycompany.com/gitlab ).
This supports only http and https protocols since the gitlab api url
is derived from the package repository url. And the ssh protocol doesn't
support folders this way.
9 years ago
Jérôme Tamarelle
4255db9e31
Allows SSH urls for gitlab and detect the scheme
...
SSH urls uses HTTPS to request the API
9 years ago
Jérôme Tamarelle
ac68a721f4
Merge remote-tracking branch 'composer/master' into gitlab
...
Conflicts:
doc/04-schema.md
src/Composer/Util/RemoteFilesystem.php
9 years ago
Jordi Boggiano
ce08582671
Fix CS
9 years ago
Rob Bast
a1427d7fd6
replace all occurences in code and comments
9 years ago
Dennis Birkholz
3febbc2cbf
Test case to verify relative paths remain relative
9 years ago
Dennis Birkholz
323537ad0f
Allow wildcards in repository path names.
9 years ago
Samuel ROZE
6c16153302
Added repository tests
9 years ago
Jordi Boggiano
6a64041055
CS fixes
9 years ago
Nils Adermann
75c501251d
Revert "Merge remote-tracking branch 'naderman/load-no-providers'"
...
This reverts commit 3e85f82373
, reversing
changes made to b025d0982b
.
9 years ago
Jordi Boggiano
3e85f82373
Merge remote-tracking branch 'naderman/load-no-providers'
9 years ago
Nils Adermann
e25b86c129
Fix composer repo test to match what composer repos send
9 years ago
Jordi Boggiano
52d290f5f2
trim token just in case and update tests
9 years ago
Nils Adermann
67f10c1601
PHP 5.3 this/that compatibility
9 years ago
Nils Adermann
ec5416f03c
loadDev parameter is nonsense, properly load packages in create command
9 years ago
Nils Adermann
da02c53540
Update the composer repository whatprovides test to a loadrecursively test
9 years ago
Nils Adermann
709943aca5
ComposerRepository works differently now, so comment out test until replaced
9 years ago
Jérôme Tamarelle
c1edfbb65c
Add tests on GitLabDriver
...
Add an interactive prompt for gitlab token
Update doc for gitlab-domains
Add tests on GitLabDriver::supports
Update doc + CS
Optimize branch detection + fix typos
Fix test on GitLab support as it depends on SSL
Remove useless method + fix repository URL containing .git
10 years ago
Henrik Bjørnskov
782c6303bc
Initial GitLab Driver
...
This is a proof of concept, and mostly done to gather feedback on the
structure of the driver and to see if this is something that Composer
should include in core.
Various review changes based on Stof comments.
* Remove cleanup() as it is implemented by the abstract class.
* Remove wrong comment in getReferences
* Implement getSource (as GitHubDriver does)
* Finish phpDocs for methods.
10 years ago
Steve Buzonas
484c04b5e5
update repository manager tests to use data provider and test for exception case
10 years ago
Rob Bast
a34335a9bb
github deprecation changes
...
- added some tests
- minor bug fixes discovered during testing
- resolved two deprecations (rate limit api and authorizations api)
- added some more comments to make the flow more understandable
10 years ago
Grégoire Paris
091fee8a3b
skip some tests when the zip extension misses
...
It is required for some tests to run.
10 years ago
Jordi Boggiano
220bd2bd1e
Remove phpunit repo from tests
10 years ago
Christophe Coevoet
9bc6209be9
Fix tests for the pear repository
10 years ago
Jordi Boggiano
94926218e8
CS fixes
10 years ago
Jordi Boggiano
7b4fcd93d3
Merge remote-tracking branch 'webfactory/issue-2698'
...
Conflicts:
src/Composer/Repository/ArtifactRepository.php
10 years ago
Jordi Boggiano
d5294ef91b
Update repo url from github and handle trailing slashes, refs composer/packagist#354 refs composer/packagist#423
10 years ago
Jordi Boggiano
ac497feaba
CS fixes
10 years ago
Benjamin Grandfond
a21b0f82db
Allow SVN to connect with credentials provided with the auth.json file
10 years ago
Jordi Boggiano
90d1b6e08a
Rename basic-auth to http-basic, add docs/schema/config support, add local auth file support, add storage to auth.json, add store-auths config option, refs #1862
10 years ago
Clark Stuth
a12c4e2a17
Removed getWindowsFlag and setWindowsFlag methods from Perforce object.
11 years ago
Clark Stuth
c11105dd60
Fixing bug not cleaning up workspaces.
11 years ago
Clark Stuth
492539101c
got all unit tests passing
11 years ago
Clark Stuth
24dd42267f
almost all unit tests passing after IOInterface dependency refactor. no longer passing IOInterface into any Perforce methods
11 years ago
Jordi Boggiano
0d4c2bb7d7
Fix github test
11 years ago
Nils Adermann
1ccf4b0fc3
Correct the tests for dist urls for github
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
Danack
bc76e0014b
Moved tests that are expected to work into their own directory.
...
Added test for composer.json in incorrect directory.
11 years ago
Matthias Pigulla
beff1f5cc1
This should create relative/absolute dist URLs depending on the way (relative/absolute) the artifact directory path was given.
11 years ago
Jordi Boggiano
5156a60216
Add test for RepositoryManager repo creation
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
7c83e6a04a
Merge remote-tracking branch 'GromNaN/git-cache'
11 years ago
Fabian Grutschus
a6823d2f9b
non-deep check returns allways false
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
Jordi Boggiano
38917c2047
Add parallel build to travis script
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
07d46aa3c3
Fixed spacing issues for PSR-2
11 years ago
mwhittom
774a55befd
Updated to match psr-2 spec, fixed header comments
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
1015957659
Added tests and code for tests
11 years ago
matt-whittom
1019c014e5
using theirs
11 years ago
matt-whittom
53d6fcd6d3
using theirs
11 years ago
matt-whittom
0d061f2530
Added Perforce to Composer
11 years ago
Jordi Boggiano
d017e3f209
Adjust GitDriver tag parsing to resolve to SHAs
11 years ago
Jordi Boggiano
e0051a4652
Update tests
11 years ago
Jordi Boggiano
7755564962
Add test assertion
11 years ago
Kris Wallsmith
fa4b13d95a
fix when composite repo has no delegates
11 years ago
Phansys
57dd70a185
Updated tests for SVN driver.
11 years ago
Jordi Boggiano
d498e73363
Merge pull request #2004 from jaypea/recursive_artifactrepository
...
ArtifactRepository needs recursive iteration
11 years ago
Jan Prieser
c6b61854bc
changed Test to make sure subfolder packages are found correctly
11 years ago
Pavel Savinov
831bd844bd
Almost PHPDoc problems fixed
11 years ago
Jordi Boggiano
59bda2bb9b
Skip pear tests when repos are unreachable
11 years ago
Jordi Boggiano
faa419cc0e
Merge remote-tracking branch 'hason/alias'
12 years ago
Martin Hasoň
753a8345cb
Added support for the alias of an aliased package
12 years ago
Martin Hasoň
c39e958a6f
Added test for ComposerRepository::whatProvides
12 years ago
Serge Smertin
07920c48a6
Removed dev-master as default version for versionless artifact
12 years ago
Serge Smertin
b0aa98f287
modified test in order not to depend on sorting order
12 years ago
Serge Smertin
ac75a9e6d8
travis locale version order fixed
12 years ago
Serge Smertin
b5e1457470
set version to dev-master to artifacts without version
12 years ago
Serge Smertin
d45844fb63
added fixture dummy artifacts
12 years ago
Serge Smertin
f25bfe09c5
added support for nested location of composer.json files within artifacts
12 years ago
Serge Smertin
586911f7a1
added verbose logging for artifact directory scan
12 years ago
Serge Smertin
4b176f11f2
added artifact repository initial functionality
12 years ago
Jordi Boggiano
be861f090a
Remove filterPackages and add RepositoryInterface::search, refactor all commands to use new methods and remove all usage of the full package list for Composer repositories that support providers, fixes #1646
12 years ago
Jordi Boggiano
259a25344d
Use the api to get file contents instead of raw.github.com
...
raw.github does not like the access_token query param
12 years ago
Jordi Boggiano
27898c4c31
Suppress errors from mkdir calls that are checked for failure
12 years ago
Jordi Boggiano
1e15edc43d
Fix repository test
12 years ago
Jordi Boggiano
940c2a079d
Show failures more clearly in test setup
12 years ago
Jordi Boggiano
80c18db694
Fix tests
12 years ago
Jordi Boggiano
432955e0ae
Fix github url escaping, raw.github.com doesnt like escaped slashes
12 years ago
Filippo Tessarotto
470adc47df
Switched rand() to mt_rand()
12 years ago
Jordi Boggiano
224934831d
Change all github archive URLs to API URLs and handle fallback for those to nodeload
12 years ago
Chris Smith
e3838bbc1f
Update tests to expect correct URLs for private dist downloads
12 years ago
Jordi Boggiano
487e66d0a9
Allow loading of multiple composer autoloaders concurrently, fixes #1248
12 years ago
Jordi Boggiano
4f5d08e2ad
Add InvalidRepositoryException
12 years ago
Igor Wiedler
4959c2bdc6
Replace references of a11n with a12n where appropriate
...
Authorization => Authentication.
12 years ago
Jordi Boggiano
cbd91b5952
Fix FILTER_VALIDATE_URL not supporting IDNs
12 years ago
Jordi Boggiano
1682532b80
Update code to use new github archive URLs
12 years ago
Chris Smith
7681b4cc85
Add test covering the new and old repository formats
12 years ago
Jordi Boggiano
bebd1ce9c7
Always check for OAuth token in git config, fixes #1243
12 years ago
Jordi Boggiano
0a3097c569
Merge remote-tracking branch 'bboer/feature/svn-alternative-structures'
...
Conflicts:
src/Composer/Repository/Vcs/GitHubDriver.php
12 years ago
Jordi Boggiano
e0ce22f7cc
Fix tests
12 years ago
Jordi Boggiano
4998bab944
Show warning if the svn binary is missing
12 years ago
bboer
00361e0087
Fixed tests
12 years ago
Jordi Boggiano
d6de4a0036
Rename Package interfaces to reduce BC issues
12 years ago
Jordi Boggiano
f08c748658
Fix tests, fix handling of branches with slashes in GitDriver, fixes #935
12 years ago
Jordi Boggiano
4b18be75d7
Add test for fancy branch names, refs #935
12 years ago
Sebastiaan Stok
9270904765
fixed issue #992 - branch name not properly escaped
12 years ago
Alexey Prilipko
ac3cebc633
Update PEAR Package Extractor to use 'task:replace', 'phprelease' commands and install role='script' files
...
Add PearInstaller
Change PEAR packages type from 'library' to 'pear-library' and dist type from 'pear' to 'file'
Remove PearDownloader
Refactor Channel Installer
12 years ago
Alexey Prilipko
f2853c842b
Review fixes
12 years ago
Alexey Prilipko
e173f11b37
Add PEAR channel reader & Update PearRepository to use it.
12 years ago
Jordi Boggiano
656feda837
Revert previous change, use GIT_ASKPASS env var instead
12 years ago
Jordi Boggiano
ccc6fa3714
Merge pull request #775 from palex-fpt/PR-746
...
PEAR Packages extraction based on package.xml format
12 years ago
Jordi Boggiano
a06ebdd8ef
Add caching to svn metadata
12 years ago
Grégoire Pineau
f4e9dd4fb8
Fixed PSR rules
12 years ago
Alexey Prilipko
71ac073ebe
Add 'include-path' option to PEAR packages
12 years ago
Jordi Boggiano
b4622885de
Fix tests with openssl disabled
12 years ago
Jordi Boggiano
4505df29df
Add functional tests for the installer, fixes #580
12 years ago
Jordi Boggiano
7bfe031768
VcsDrivers now send proper originUrl for authentication
13 years ago
Jordi Boggiano
6967ec16b3
Add slow tests to slow group, excluded by default except for travis
13 years ago
Bastian Hofmann
6d5d3af297
coding standard compliance
13 years ago
Bastian Hofmann
4b3fc2b5fa
Merge branch 'master' of git://github.com/composer/composer
...
Conflicts:
src/Composer/Repository/PearRepository.php
13 years ago
Bastian Hofmann
7501009d74
added tests for PearRepository
13 years ago
Jordi Boggiano
b3164de813
Fix tests
13 years ago
Jerome Tamarelle
610f15a768
Fix unit tests for VcsRepository
13 years ago
Jordi Boggiano
e922404f19
Update/add tests
13 years ago
Jordi Boggiano
595182aec0
Add/fix tests
13 years ago
Jordi Boggiano
91890545f9
Fix test
13 years ago
Jordi Boggiano
6d5b4d606c
Add warning in verbose mode if drivers can not be used because of missing openssl
13 years ago
Jordi Boggiano
5a7abfd84f
Remove code duplication in Svn classes
13 years ago
Jordi Boggiano
cd2e5bf2e0
Make SvnDriver::supports less greedy and more realistic
13 years ago
Jordi Boggiano
8fb9c4bf3b
Svn related coding style/consistency fixes and minor improvements
13 years ago
till
e015032615
remove old tests
13 years ago
till
8f96786693
Merge remote-tracking branch 'upstream/master' into svn-auth-reloaded
13 years ago
till
66d53aafef
add more examples to the dataprovider
13 years ago
Jordi Boggiano
2249dd0548
Fix tests when openssl is disabled
13 years ago
Jordi Boggiano
d5891fe8d0
Fix test
13 years ago
Beau Simensen
38680998ed
Remove the RemoteFilesystem factory and document GitHubDriver->GitDriver fallback.
13 years ago
till
2562755867
* add a test to cover SvnDriver::supports() (three fail)
13 years ago
till
9a60913d81
incomplete (instead of skipped)
13 years ago
till
f06bdcbf16
use shorthand (we have a use statement)
13 years ago
till
50f6445bc9
cleanup
13 years ago
till
5fdd09104f
resolve conflict
13 years ago
Beau Simensen
6efbc7d531
Enhanced GitHub API/Private Repository support
13 years ago
Jordi Boggiano
1d544630b6
Allow requesting a particular vcs driver to bypass github/bitbucket ones
13 years ago
till
364e9613ad
* started on a test case for SvnDriver::execute() (work in progress)
13 years ago
till
25e8ecc5ba
* trim the testcase: no need to inject nullio
13 years ago
till
bcadfadc8a
inject them directly
13 years ago
till
84bf429795
* we need symfony console objects for ConsoleIO
13 years ago
till
cde38f6634
* inject iointerface into test
...
* document test cases
* add a test-case which should not have ' --no-auth-cache'
13 years ago
Jordi Boggiano
3aabb4784c
Cross platform test fixes
13 years ago
till
953de35a0b
* basic testcase
13 years ago
till
3f665e8bbb
* method to gather if this session is 'interactive' or 'non interactive'
13 years ago
till
23902023e5
fix namespace
13 years ago
till
ae15d8a5b6
update test (escapeshellarg())
13 years ago
till
8dab89e140
remove bootstrapping
13 years ago
till
5b60885c7a
* remove this (even though it is in the Vcs test)
13 years ago
till
f7c0ce5c6e
fix namespace and loader
13 years ago
till
101e15bb86
move mysql
13 years ago
till
1c9f649422
* cover detection and getSvnCredentialString()
13 years ago
Jordi Boggiano
5eb333680b
Rename findPackagesByName to findPackages and allow version arg
13 years ago
Jordi Boggiano
ae7107fc22
Add more test requirements
13 years ago
Jordi Boggiano
a175ebed33
Add failing test for new dev behavior
13 years ago
Beau Simensen
e1370be7a0
Continued refactoring of install() method, mainly by way of adding Composite Repository
...
* Rewritten `install()` method now takes a repository instead of a list of packages (per @nadermen)
* Added Composite Repository
* Added tests for Composite Repository
* Removed "local repository" concept from Platform Repository
* Removed some `use` statements for Platform Repository where it was not actually being used
13 years ago
Christophe Coevoet
38a5f04ea0
Added a test for the new findPackagesByName method
13 years ago
Jordi Boggiano
f6b9488bf0
Move root package handling to a dedicated loader and make ArrayLoader more strict
13 years ago
Jordi Boggiano
deb6ecd49b
Fix tests
13 years ago
Jordi Boggiano
b125926ad3
Fix tests
13 years ago
Jordi Boggiano
8e6f8ae57e
Add prettyVersion to packages, fixes #76
13 years ago
Fabien Potencier
9c739e71c2
Add some unit tests
13 years ago
Fabien Potencier
1450ebd837
Fix bug in an exception, added unit tests
13 years ago
Jordi Boggiano
5e52d5c1ad
Fix tests
13 years ago
Jordi Boggiano
61dc13647c
Fix tests
13 years ago