PHPUnit2 and mock objects?
| From: | Marco Schuler | Date: | Thu, 03 Feb 2005 16:23:40 +0000 |
| Subject: | PHPUnit2 and mock objects? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-17361@lists.php.net to get a copy of this message | ||
Hi
After having done some more or less small webapps, I am going to
develop a bigger one now. I read about unit-testing the last few
hours and I think, PHPUnit2 is the most mature one. But what I miss
is a kind of mock-objects as there is in simpleTest
(http://www.lastcraft.com/simple_test.php). I read about plans to
implement mock-object into PHPUnit2 on some webpage(s). I even saw a
file "MockRunner.php" in the Tests directory of PHPUnit2. Is it
already possible to use mock-object with PHPUnit2? Where can I read
more about it?
--
Cheers!
Marco