Re: PHPUnit patch
| From: | Wolfram Kriesing | Date: | Fri, 14 Mar 2003 20:37:16 +0000 |
| Subject: | Re: PHPUnit patch | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14315@lists.php.net to get a copy of this message | ||
Wolfram Kriesing wrote:
This patch provides two things:
1) the assertEquals() didnt work on array, which had the same content, but represented by different types. I added a mode which sets all content within an array to string, so only the string representation of the array content is compared. You can turn this on by calling
$this->setOption('looselyTyped',true);
in your test case. Examples can be found in DB_QueryTool
2) a HTML GUI-class which can also be used to test multiple Suites and prepares the results (nicely).
http://os.visionp.de/downloads/PHPUnit_GUI_HTML_compact.jpg
http://os.visionp.de/downloads/PHPUnit_GUI_HTML_full.jpg
the entire patch, which also contains the GUI classes is available at:
http://os.visionp.de/downloads/PHPUnit_patch.jpg
http://os.visionp.de/downloads/PHPUnit_patch.tgz
of course *stupid copy paster*
--
Wolfram
... opensource @ vision:produktion ...
http://opensource.visionp.de
... translating template engine ....
http://sf.net/projects/simpletpl
... authentication system ....
http://sf.net/projects/auth