Re: using pear::db in tests

From: Date: Tue, 11 Nov 2003 00:04:06 +0000
Subject: Re: using pear::db in tests
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8858@lists.php.net to get a copy of this message
On Mon, 2003-11-10 at 02:42, Robin Ericsson wrote: > I'm currenly adding unit-tests to my application and I want to test the > db-functionality aswell. > > I remember seeing using mock-objects or something like that, but maybe > the best approach is to use sqllite? Hi Robin, For unit testing selects I use a DB driver called QuerySim. It was developed precisely for this purpose. My QuerySim for DB driver is hosted at: http://bombusbee.com/downloads.main And a tutorial on its use is here: http://www.databasejournal.com/features/php/article.php/1470251 QuerySim for MDB is included with the MDB package. -Alan

« previous php.pear.general (#8858) next »