Commit Graph

50 Commits

Author SHA1 Message Date
Stig Bakken
81e5b17f91 * made rebuildFileMap method public, added caching and checkFileMap method 2002-07-07 20:48:54 +00:00
Stig Bakken
f111dff665 * merge NEW_UI_API branch 2002-06-02 13:07:19 +00:00
Jan Lehnardt
57adfb0dec - add testcase for PEAR::delExpect() 2002-05-30 09:39:52 +00:00
Stig Bakken
1ed83e4970 * update test 2002-05-28 01:21:26 +00:00
Stig Bakken
f0a3e7262e * updated config key names 2002-05-12 07:09:25 +00:00
Stig Bakken
201ec25f42 * exclude _lastmodified registry attrib from tests 2002-05-12 07:08:25 +00:00
Stig Bakken
96213680ca * add preferred_state 2002-04-09 18:51:31 +00:00
Stig Bakken
a036fe5b72 * Refactoring of "pear" command internals. Highlights:
- user interface abstraction, making a Gtk installer should only be
   a matter of implementing PEAR_CommandUI_Gtk plus a "pear-gtk" executable
 - separated code into command classes, able to specify one or more
   commands
 - no more "pear-get" :-)
* fixed use of PEAR_Config::singleton to avoid object copying
2002-03-18 17:39:52 +00:00
Tomas V.V.Cox
7c77b1a71e No more lines on this test 2002-03-13 01:46:10 +00:00
Tomas V.V.Cox
409a631bed Fix error handling selection when both class and global are set 2002-03-13 01:17:47 +00:00
Sander Roobol
58a52f93bc Fixed many tests, mostly incorrect paths. 2002-03-08 19:16:19 +00:00
Stig Bakken
fda570aadc * PEAR_Config test complete 2002-03-05 20:39:38 +00:00
Stig Bakken
80f1212660 * update PEAR_Config test 2002-03-05 17:39:53 +00:00
Stig Bakken
2b9f535589 * fixed a couple of bugs in PEAR_Config revealed by test 2002-03-05 00:41:36 +00:00
Stig Bakken
8d7d6ce2c3 * more cli test fixes 2002-03-02 03:11:02 +00:00
Stig Bakken
4c73289238 * updated tests to work with cli 2002-03-02 03:07:48 +00:00
Stig Bakken
b8aa2339d3 fix test 2002-03-02 02:47:48 +00:00
Tomas V.V.Cox
0dd3010501 test suite for the System class 2002-02-10 17:12:43 +00:00
Tomas V.V.Cox
3a878be7a1 submit a test that will fail due to php bug #14744 2002-01-11 00:04:55 +00:00
Stig Bakken
54ad4c578c * PEAR.php line number changes again 2002-01-02 17:19:25 +00:00
Stig Bakken
6ca17a6e35 * registry files renamed from .inf to .reg, update test 2002-01-02 17:18:52 +00:00
Stig Bakken
b11d1eb440 * initial commit of PEAR method autoloader 2001-12-10 01:50:11 +00:00
Stig Bakken
db44b1086c * expectError() now accepts "*" as a catch-all
* updated tests
2001-11-04 09:07:17 +00:00
Stig Bakken
b0a803d127 * update tests 2001-10-31 05:52:41 +00:00
Stig Bakken
b60aedc275 * PEAR_Registry: renamed "upgradePackage" to "updatePackage"
* added tests for PEAR_Config and PEAR_Registry
2001-10-29 12:17:37 +00:00
Stig Bakken
475796a0d7 removed 2001-10-26 20:05:34 +00:00
Stig Bakken
405142087c * replaced PEAR::phpVersionIs with version_compare 2001-10-11 22:11:34 +00:00
Stig Bakken
1f40bd4cd9 * updated line numbers 2001-10-11 01:23:53 +00:00
Tomas V.V.Cox
20505d8483 added tests for PHP version comparing functions 2001-10-05 13:02:08 +00:00
Tomas V.V.Cox
a95fb10461 renumber error lines 2001-08-31 19:21:02 +00:00
Tomas V.V.Cox
409b87d41e make some tests to work. Still left the Notice of the deprecated use of
call_user_method, no way to shut it down.
2001-08-31 16:43:08 +00:00
Stig Bakken
d400f78079 * expected error codes are stored on a stack now, PEAR::expectError()
pushes into it, PEAR::popExpect() pops off it
* made pear_error test work on other boxes than my own :-)
2001-08-14 21:11:33 +00:00
Stig Bakken
3c801213c6 * updated test (currently passes only on my laptop, sorry...) 2001-08-14 12:49:51 +00:00
Stig Bakken
2cf1b8d345 * expanded the following constants and made them available in PHP:
DEFAULT_INCLUDE_PATH
  PEAR_INSTALL_DIR
  PHP_EXTENSION_DIR
  PHP_BINDIR
  PHP_LIBDIR
  PHP_DATADIR
  PHP_SYSCONFDIR
  PHP_LOCALSTATEDIR
  PHP_CONFIG_FILE_PATH
* no longer generating pear/PEAR.php
* fixed some tests
* some more installer work
2001-04-22 01:09:14 +00:00
Stig Bakken
43bba67988 * forgot to update this test too 2001-04-19 02:40:35 +00:00
Stig Bakken
2e4ecd5cab * DB_common now inherits PEAR and its error handling stuff
* DB_common::raiseError is now just a wrapper for PEAR::raiseError
* fixed some cast warnings in prepare/execute
* updated tests
2001-04-19 02:37:47 +00:00
Stig Bakken
2723ad2e63 * have DB.php use PEAR::raiseError in factory methods 2001-04-17 01:51:27 +00:00
Stig Bakken
ee17aae3ac * make the error class used by raiseError configurable (_error_class property,
overridden by first parameter to constructor)
2001-04-16 21:45:21 +00:00
Stig Bakken
81e1ef0ad7 * PEAR: look for destructor methods in parent classes if
the current class does not have one
2001-04-13 22:24:33 +00:00
Stig Bakken
7cf00c7076 @Added raiseError and setErrorHandling methods to PEAR class (Stig, PEAR)
# This allows all objects to have their own default error handling
# or use a global default.
2001-01-30 00:55:27 +00:00
Stig Bakken
8f74a36858 * added Sebastian's affectedRows() and numRows() for MySQL
* added regression test for DB_mysql::affectedRows
* fixed some PEAR_Error based tests that had broken (line number change)
2000-12-07 19:53:27 +00:00
Stig Bakken
7c53e635b2 PEAR:
* added $debuginfo parameter to PEAR_Error constructor
 * put last query in $debuginfo from DB_common::raiseError()
@PEAR: add last executed query as debug info in DB errors (Stig)
2000-09-13 11:27:59 +00:00
Stig Bakken
63aec84825 PEAR:
* show what's going on when PEAR files are installed
 * allow multiple modes (or'ed) in PEAR_Error
@PEAR: allow multiple modes in PEAR_Error (Stig)
2000-09-13 07:39:54 +00:00
Stig Bakken
971f8b0881 @Added a more configurable error reporting interface to DB.
Added a more configurable error reporting interface to DB.
Also added some more tests, and moved the DB tests to pear/DB/tests.
#Usage example that prints and exits on every error:
#$dbh = DB::connect($dsn);
#$dbh->setErrorHandling(PEAR_ERROR_DIE);
#
#Example with plain callback function:
#$dbh->setErrorHandling(PEAR_ERROR_CALLBACK, "errorHandler");
#
#Example with object callback function:
#$dbh->setErrorHandling(PEAR_ERROR_CALLBACK, array($obj, "errorHandler"));
#
#Handler functions/methods are called with the error object as a parameter.
#
2000-09-09 02:39:56 +00:00
Andrei Zmievski
0fddc30b7a - Converted __string_value() to toString(), since the former is obsolete.
- Made sure DB results are freed where necessary.
- Made DB::getAssoc() use $params if passed.
- Implemented DB::getAll().
2000-09-07 16:36:22 +00:00
Stig Bakken
83ba61245c All (three) current DB tests pass. 2000-08-29 09:10:44 +00:00
Stig Bakken
5b2719d9b3 I said I had not _tested_ this on windows, didn't I? :-) 2000-08-28 07:03:51 +00:00
Stig Bakken
315f4f5658 @PHP 3 regression testing framework re-born (Stig)
Took the old PHP 3 regression testing framework and rewrote it in PHP.
Should work on both Windows and UNIX, however I have not tested it on
Windows.  See tests/README for how to write tests.  Added the PHP 3
tests and converted most of them.
2000-08-27 19:46:06 +00:00
Stig Bakken
def1424b12 @Added XML_Parser class in PEAR (Stig)
@Added "make test" target in pear/ and added some regression tests (Stig)
Also fixed a bug in the PEAR class that was discovered when testing :-)
2000-07-30 17:41:31 +00:00
Stig Bakken
e0b531d5f4 * the beginning of a regression testing framework? 2000-07-25 00:55:37 +00:00