Poll: phpt or phpunit and why?
| From: | js | Date: | Wed, 06 Feb 2008 14:38:42 +0000 |
| Subject: | Poll: phpt or phpunit and why? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-268779@lists.php.net to get a copy of this message | ||
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
because it's less code and easy to write.
I use phpunit for tests of complex classes.
I can do that with phpt, but to me phptunit is more easy to understand
what the test is doing.