1
0
Fork 0
composer/tests/Composer/Test
Till Klampaeckel 2acb033057 Initial feature-dist
* extends BaseDumper, implements interface
 * put $keys into BaseDumper

 * WIP WIP WIP WIP
 * BaseDumper for utilities
 * interface to enforce 'dump()'
 * feature:
   * supports git
   * supports zip output
   * basic test to cover feature

 * add @todo for later
 * add vendor namespace to package name

 * add extension to getFilename() so we don't need to switch in there (HT, @naderman)

 * add extension (obviously 'zip' in ZipDumper)

 * create archive in destination dir (provided by __construct())

 * condensed ZipDumper
 * moved code to BaseDumper (hopefully easier re-use)

 * use ProcessExecutor from BaseDumper

 * fix assignments in __construct()
 * allow injection of ProcessExecutor

 * fix parameters

 * fix regex

 * write in 'system temp dir'
 * update test case (oh look, a duplicate regex)

 * move working directory related to BaseDumper

 * add quotes

 * place holder for these methods

 * use PharData to create zip/tar when necessary

 * add placeholder calls
 * add call to package() using PharData

 * finish downloadHg(), downloadSvn()

 * put to use

 * make BaseDumper abstract (to force extension)
 * make BaseDumper implement Interface (makes for less code in the implementation)

new functionality for dumping as .tar.gz

tar instead of tar.gz, new abstract dumpertest class

creates a local git repo instead of fetching a remote one

more oo-ish version of it

no constructor

 * refactor tests to be less linux-specific (used Composer\Util to wrap calls)

 * make filename only the version

 * various cs fixes (idention, tabs/spaces, doc blocks, etc.)
 * fixed a typo'd exception name

 * refactored downloading:
   * removed download*() methods
   * added dep on Composer\Factory to setup a DownloadManager instance

 * update CS with feedback from @stof

 * ArrayDumper doesn't extend BaseDumper anymore (hence no conflict on the interface)
 * move keys from BaseDumper back to ArrayDumper
 * interface now declares dump() to always return void

Apparently I had to update the lock.

CS fixes (tabs for spaces)
Bugfix: sprintf() was missing.

Fix docblock for @stof. ;)

Pull in lock from master.

Update lock one more time (hope it still merges).

whitespace

Revert ArrayDumper static keys
2013-03-28 12:49:52 +01:00
..
Autoload Allow PHP 5.2 autoloaders to consume namespace, classmap and include path files, fixes #1730 2013-03-27 18:45:33 +01:00
Config Added addLink and removeLink to Configuration Source Interface 2012-11-14 09:03:11 -08:00
DependencyResolver Fix class name 2013-02-20 15:27:11 +01:00
Downloader Switched rand() to mt_rand() 2013-01-30 10:44:07 +01:00
Fixtures Handle stability changes correctly, fixes #877 2013-03-10 19:55:26 +01:00
IO Replace references of a11n with a12n where appropriate 2012-11-07 13:34:31 +01:00
Installer Update docs, fix tests 2013-03-03 17:59:07 +01:00
Json Add test for escape sequences 2013-02-18 22:13:54 +01:00
Mock Handle stability changes correctly, fixes #877 2013-03-10 19:55:26 +01:00
Package Initial feature-dist 2013-03-28 12:49:52 +01:00
Repository 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 2013-03-10 13:40:52 +01:00
Script Fix test to reduce cross-platform issues 2012-12-06 10:07:57 +01:00
Util A bug in PHP prevents the headers from correctly beeing sent when a content-type header is present and 2013-02-27 17:07:13 +01:00
AllFunctionalTest.php Make phar build fails more debuggable 2013-03-10 13:58:49 +01:00
CacheTest.php Refactor require-dev handling to use one single repository and a one pass solving, fixes #719, fixes #1185, fixes #1330, fixes #789, fixes #640 2013-03-03 00:41:12 +01:00
ComposerTest.php Rename Package interfaces to reduce BC issues 2012-08-24 02:29:31 +02:00
ConfigTest.php Fix tests 2013-02-21 17:45:03 +01:00
InstallerTest.php Update docs, fix tests 2013-03-03 17:59:07 +01:00
TestCase.php Rename Package interfaces to reduce BC issues 2012-08-24 02:29:31 +02:00