summaryrefslogtreecommitdiff
path: root/pear/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* * DB_common now inherits PEAR and its error handling stuffStig Bakken2001-04-191-5/+5
| | | | | | | * DB_common::raiseError is now just a wrapper for PEAR::raiseError * fixed some cast warnings in prepare/execute * updated tests
* * have DB.php use PEAR::raiseError in factory methodsStig Bakken2001-04-171-5/+5
|
* * make the error class used by raiseError configurable (_error_class property,Stig Bakken2001-04-161-15/+39
| | | | | overridden by first parameter to constructor)
* * PEAR: look for destructor methods in parent classes ifStig Bakken2001-04-131-6/+25
| | | | | the current class does not have one
* @Added raiseError and setErrorHandling methods to PEAR class (Stig, PEAR)Stig Bakken2001-01-302-5/+45
| | | | | | # This allows all objects to have their own default error handling # or use a global default.
* * added Sebastian's affectedRows() and numRows() for MySQLStig Bakken2000-12-071-5/+5
| | | | | | * added regression test for DB_mysql::affectedRows * fixed some PEAR_Error based tests that had broken (line number change)
* PEAR:Stig Bakken2000-09-131-15/+15
| | | | | | | * 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)
* PEAR:Stig Bakken2000-09-132-36/+39
| | | | | | | * 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)
* @Added a more configurable error reporting interface to DB.Stig Bakken2000-09-097-161/+164
| | | | | | | | | | | | | | | | | | 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. #
* - Converted __string_value() to toString(), since the former is obsolete.Andrei Zmievski2000-09-071-10/+10
| | | | | | | - Made sure DB results are freed where necessary. - Made DB::getAssoc() use $params if passed. - Implemented DB::getAll().
* All (three) current DB tests pass.Stig Bakken2000-08-293-42/+41
|
* I said I had not _tested_ this on windows, didn't I? :-)Stig Bakken2000-08-282-0/+0
|
* @PHP 3 regression testing framework re-born (Stig)Stig Bakken2000-08-273-0/+162
| | | | | | | | 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.
* @Added XML_Parser class in PEAR (Stig)Stig Bakken2000-07-304-6/+54
| | | | | | @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 :-)
* * the beginning of a regression testing framework?Stig Bakken2000-07-253-0/+11