Re: svn: /pear/packages/DB_DataObject/trunk/tests/ simple.phpt

From: Date: Wed, 16 Nov 2011 01:15:00 +0000
Subject: Re: svn: /pear/packages/DB_DataObject/trunk/tests/ simple.phpt
References: 1 2  Groups: php.pear.cvs php.pear.qa 
Request: Send a blank email to pear-qa+get-5940@lists.php.net to get a copy of this message
Hi Daniel: On Wed, Nov 16, 2011 at 08:34:04AM +1030, Daniel O'Connor wrote: > http://test.pear.php.net:8080/job/DB_DataObject/4/console > > This and a few others obviously need a database to be tested properly. > Certainly that machine has mysql on it; or sqlite is probably available - > what would be needed to load up an appropriate schema/tear it down after > the tests? I agree and mentioned this on pear-qa a while ago. Take a look at what I committed to DB tests yesterday. It takes advantage of the MYSQL_TEST_* environment variables, which are used for PHP's tests. We should create a test user and database and set those environment variables in the cron job, or whatever. A similar setup should be made for PostgreSQL in PEAR and PHP's unit tests. Right now, PHP's tests don't use such environment variables. SQLite3 tests should use ":memory:" as the database. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.pear.qa (#5940) next »