Re: Poll: phpt or phpunit and why?

From: Date: Wed, 06 Feb 2008 15:13:22 +0000
Subject: Re: Poll: phpt or phpunit and why?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-268782@lists.php.net to get a copy of this message
On Feb 6, 2008 9:38 AM, js <ebgssth@gmail.com> wrote: > HI, > > When writing tests, do you use phpt or phpunit? (or another one?) > Why do you use that one? > Let's share the idea. > > I like both, but when I write simple tests, I prefer to use phpt ive just now learned of phpt. this would explain some of the tests i was looking at in spl; thanks for the info! > because it's less code and easy to write. really, phpunit tests are pretty small; i dont think it could be *that* much difference. phpunit has some other features you may have overlooked, such as code coverage analysis. it will also generate test stubs as well, via a cli argument phpunit --skeleton however, with phpunit, im not sure exactly how to test procedural files or even sets of global functions. it is really designed for testing only classes, afaik.. -nathan

« previous php.general (#268782) next »