cvs: pear /MDB2_Schema/tests README test_setup.php.dist

From: Date: Thu, 23 Mar 2006 07:34:09 +0000
Subject: cvs: pear /MDB2_Schema/tests README test_setup.php.dist
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39278@lists.php.net to get a copy of this message
lsmith Thu Mar 23 07:34:09 2006 UTC Modified files: /pear/MDB2_Schema/tests README test_setup.php.dist Log: - improve test suite documentation http://cvs.php.net/viewcvs.cgi/pear/MDB2_Schema/tests/README?r1=1.1&r2=1.2&diff_format=u Index: pear/MDB2_Schema/tests/README diff -u pear/MDB2_Schema/tests/README:1.1 pear/MDB2_Schema/tests/README:1.2 --- pear/MDB2_Schema/tests/README:1.1 Fri Dec 2 15:36:08 2005 +++ pear/MDB2_Schema/tests/README Thu Mar 23 07:34:09 2006 @@ -1,21 +1,17 @@ -This is a test framework for MDB2_Schema built using PHPUnit. Currently all -the tests from the metabase driver_test.php have been ported. +This is a test framework for MDB2_Schema built using PHPUnit. These tests directly access the MDB2_Schema API - hopefully this framework should give better feedback as to where or what caused when error are encountered. Usage: -In order for the tests to work they need to access a database called -"driver_test". This database is created in the manager test. If you have -problems running the manager test or the driver you are using does not yet -provide the necessary methods you may create the database manually. In the -future we will probably provide SQL files for every supported database. +In order for the tests to work you need to ensure that the user you configure +is allowed to create a new database. To setup the tests * requires PHPUnit to be installed -* requires MDB2_Schema to be installed in a php include path or the tests need to be - moved into the MDB2_Schema root path. +* requires MDB2 (with the given driver) as well as MDB2_Schema to be installed + in a php include path. * copy the file test_setup.php.dist to test_setup.php http://cvs.php.net/viewcvs.cgi/pear/MDB2_Schema/tests/test_setup.php.dist?r1=1.1&r2=1.2&diff_format=u Index: pear/MDB2_Schema/tests/test_setup.php.dist diff -u pear/MDB2_Schema/tests/test_setup.php.dist:1.1 pear/MDB2_Schema/tests/test_setup.php.dist:1.2 --- pear/MDB2_Schema/tests/test_setup.php.dist:1.1 Fri Dec 2 15:36:08 2005 +++ pear/MDB2_Schema/tests/test_setup.php.dist Thu Mar 23 07:34:09 2006 @@ -1,5 +1,8 @@ <?php +// uncomment this line if you want to run both MDB2 and MDB2_Schema from a CVS checkout +#ini_set('include_path', '../../MDB2/'.PATH_SEPARATOR.'..'.PATH_SEPARATOR.ini_get('include_path')); + $testcases = array( 'MDB2_Schema_testcase', );

« previous php.pear.cvs (#39278) next »