Commit Graph

1382 Commits

Author SHA1 Message Date
Greg Beaver
21714261a6 fix unit test 2003-12-01 00:14:37 +00:00
Greg Beaver
3db2e9bdcc minor booboo 2003-12-01 00:14:16 +00:00
Greg Beaver
df5317e336 new unit test - test works, but there is a serious bug in sortPkgDeps to be fixed, as unearthed by this test 2003-11-30 23:43:19 +00:00
Greg Beaver
bfc02f7223 finish unit test with non-working download test with callback 2003-11-30 22:51:17 +00:00
Greg Beaver
398dec718a add in skip condition for internet offline, and callback test 2003-11-30 22:49:33 +00:00
Greg Beaver
685e7a365a first unsuccessful test works 2003-11-30 22:39:24 +00:00
Greg Beaver
2276704637 first successful download test works :) 2003-11-30 22:37:47 +00:00
Greg Beaver
a7d7f311f0 beginning framework for PEAR_Common::downloadHttp test - binary test file 2003-11-30 22:31:35 +00:00
Greg Beaver
5c60fe3a0e beginning framework for PEAR_Common::downloadHttp test 2003-11-30 22:31:00 +00:00
Greg Beaver
44e2b42692 tweak tests 2003-11-30 22:24:14 +00:00
Greg Beaver
0b24e0a404 remove old holdover code that has no purpose 2003-11-30 22:01:22 +00:00
Greg Beaver
76e83f576c ...and with these changes, 100% BC is maintained. 2003-11-30 22:00:59 +00:00
Greg Beaver
c7c5d7689d experimental code shuffling, moved download() into a new class, PEAR_Downloader.
Reasons:
- 7 parameters for a method with lots of pass by reference
  implies the need to save state, i.e. use an object
- cleaner code.  download() can be easily split into 4 separate but related methods
- Installer.php is now exclusively used for installation
- future extensibility: switching to channels or local package repositories from
  using PEAR_Remote is easy.  Simply extend the API for PEAR_Downloader:
  no changes needed to the installer at all

to install for testing purposes, use

pear upgrade --force package-PEAR-new-Downloader.xml

to uninstall, use

pear upgrade --force package-PEAR.xml
2003-11-30 05:39:02 +00:00
Greg Beaver
cc27a3f03d got it - the pattern ONLY needs addslashes for windows paths 2003-11-30 00:14:22 +00:00
Greg Beaver
6f1625d29b fix one part - can't get the ereg() to match on windows, will fix when I figure out why 2003-11-29 23:37:56 +00:00
Greg Beaver
2c4e1f1d4a fix up unit tests - registry was ridiculously out of date. Guess nobody ever runs these... 2003-11-29 23:36:46 +00:00
Greg Beaver
e882ab4817 new test case 2003-11-29 20:45:09 +00:00
Greg Beaver
154db581ae finish unit test 2003-11-29 20:35:43 +00:00
Greg Beaver
e39e452e30 add in environment variable for easy non-skipping 2003-11-29 19:43:05 +00:00
Greg Beaver
24409dc035 fix some bugs found in the unit test 2003-11-29 19:42:19 +00:00
Greg Beaver
595b433b25 start on a new unit test 2003-11-29 19:39:51 +00:00
Greg Beaver
56908214ab add dependency on xml extension - we need it for every installation/package function 2003-11-29 17:56:36 +00:00
Greg Beaver
e57b75eff4 fix Bug #324 pear -G gives Fatal Error (PHP-GTK not installed, but error is at engine level) 2003-11-29 16:33:54 +00:00
Greg Beaver
6c9fa67eca fix Bug #293 [Patch] PEAR_Error not calling static method callbacks for error-handler 2003-11-26 15:08:42 +00:00
Martin Jansen
6ff584e2fb * Fix potential warning 2003-11-17 09:15:28 +00:00
Greg Beaver
137adbb708 necessary refinement 2003-11-17 06:07:15 +00:00
Greg Beaver
82bd0915f5 fix bug #248, --force does not work as expected 2003-11-17 05:56:50 +00:00
Greg Beaver
c05dfddda4 fix bug #249 2003-11-17 05:45:49 +00:00
Stig Bakken
c67848319a * "chmod +x" when extracting archived executable files 2003-11-17 02:27:23 +00:00
Greg Beaver
997db6551a checkExtension() was a complete disaster, can't believe it didn't cause any problems before. 2003-11-01 05:06:27 +00:00
Greg Beaver
1e2a437c0c new unit test 2003-11-01 05:05:34 +00:00
Greg Beaver
43d1ad8372 new unit test 2003-11-01 03:32:15 +00:00
Greg Beaver
48bca64444 fix bug found by unit test 2003-11-01 03:31:52 +00:00
Greg Beaver
014d039459 add optional dependencies to test 2003-10-31 22:53:31 +00:00
Greg Beaver
6d0360204d better error messages, fix potential problems in the future 2003-10-31 22:53:20 +00:00
Greg Beaver
5d0cc08805 fix warning 2003-10-31 22:52:33 +00:00
Greg Beaver
70a852ebdc fix test 2003-10-31 22:51:43 +00:00
Greg Beaver
d4150d6095 add fancy SKIPIF code, fix test 2003-10-31 22:46:57 +00:00
Greg Beaver
6c403c7794 add fancy SKIPIF code 2003-10-31 22:39:43 +00:00
Greg Beaver
f51b3c0cb1 fix test 1, add in nifty SKIPIF code 2003-10-31 22:30:37 +00:00
Greg Beaver
5754cfe68c deleted code says it all 2003-10-31 22:22:17 +00:00
Greg Beaver
3caf118763 add in skip to match other tests 2003-10-31 17:41:57 +00:00
Greg Beaver
4da5da699e new test case 2003-10-31 17:39:59 +00:00
Greg Beaver
25e1f920d1 major bug - "not" dependency check would completely fail. Guess nobody ever tried it before :) 2003-10-31 17:22:15 +00:00
Greg Beaver
f3102f9d6b was checking the wrong parameter for a v. - should be checking version 2003-10-31 17:01:39 +00:00
Greg Beaver
8c77fbe743 phpdoc fix 2003-10-31 16:50:56 +00:00
Greg Beaver
899432fac8 finished unit test 2003-10-31 05:14:32 +00:00
Greg Beaver
9ed1956bfa bump to 1.3b4, add note about fix for #171 2003-10-31 04:56:08 +00:00
Greg Beaver
5c76e88d0e fix #171, --alldeps with a rel="eq" should install the required version, if possible 2003-10-31 04:52:00 +00:00
Greg Beaver
76d66203f4 add some error control to analyzeSourceCode() for really rare cases - invalid PHP 2003-10-31 01:17:47 +00:00