FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=19211&edit=1

ID: 19211
Updated by: alan@akbkhome.com
Reported By: danielc at analysisandsolutions dot com
Summary: rework unit tests
Status: Open
Type: Bug
Package: DB_DataObject
Package Version: SVN
PHP Version: 5_4 SVN-2012-01-09
Roadmap Versions:
New Comment:

Have a look at the last changes, these should have fixed these.

simple.phpt is the only vaguely working test at present, it crashes pear
run-test due
to a regex issue.


Previous Comments:
------------------------------------------------------------------------

[2012-01-09 19:32:32] danielc

Description:
------------
Hi Alan:

The unit tests need to work out of the box, please.

1) Restructure the file layout to be under a directory named "DB". This
way calling the unit tests from the package checkout's root directory
will work when the tests, or other files, make include calls.

2) The configurations need to be automatic. Right now an .ini file is
used. The tests need to set path based settings based on the current
directory and pick up auth information via the MYSQL_TEST_* environment
variables. See
http://svn.php.net/viewvc/pear/packages/Auth_PrefManager/trunk/tests/setup.php?view=markup
for an example of using those variables.

Thanks.

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 15, '12 at 5:33a
activeJan 15, '12 at 5:33a
posts1
users1
websitepear.php.net

1 user in discussion

Alan: 1 post

People

Translate

site design / logo © 2022 Grokbase