RE: [PEAR-DEV] Testing framework to use

From: Date: Mon, 16 Sep 2002 13:51:09 +0000
Subject: RE: [PEAR-DEV] Testing framework to use
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9093@lists.php.net to get a copy of this message
Hi, well MDB currently has 2 testing suites. One is the Metabase testing suite that is very Metabase specific. The other is PHPUnit based and it looks like it's a useful way to write tests. I briefly looked at the scripts and they are very easy to read and extend. Based on this experience I would recommend PHPUnit. I cant say anything about the PEAR DB test script other than I never got them to run correctly at all. IIRC they run in command line mode and appearently they are not straightforward to work correctly which is pretty bad (this should get fixed btw). Because you should never be too stupid to run a test script :-) Regards, Lukas > -----Original Message----- > From: Brent Cook [mailto:busterb@mail.utexas.edu] > Sent: Sunday, September 15, 2002 8:29 AM > To: pear-dev@lists.php.net > Subject: [PEAR-DEV] Testing framework to use > > Hey Guys, > > The SQL parser and DBA are becoming more capable, and I need a good way > of testing new features and for regressions (especially compatibility > with old PHP versions; there have been more than a few surprises for me!). > > What's the recommended way of writing test cases in PEAR? I've noticed a > good number of .phpt files, which seem to be intended for use with the > php-test.php script included with PHP itself. This message clued me in > about how to use those: > http://www.zend.com/lists/php-dev/200203/msg00059.html, but > other > documentation was hard to find. These files are currently used by DB, > various PECL extensions, XML_Parser and XML_RSS. > > OTOH, there's a, I'm assuming, perfectly fine testing framework with PEAR. > It's documented on the pear website pretty well, but only used with MDB > and Math_Vector. > > Which one should I use? I'm testing a lot of different data with a > relatively small set of methods and my current tests just use a lot of > print_r's. > > Thanks, > Brent > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.dev (#9093) next »