Re: [PRES] cvs: presentations /slides/advanced runtests t_golden.xml t_unit.xml t_unit_phpunit1.xml t_unit_phpunit2.xml t_unit_phpunit3.xml
url_parser1.phpt
| From: | Sterling Hughes | Date: | Wed, 14 May 2003 02:54:00 +0000 |
| Subject: | Re: [PRES] cvs: presentations /slides/advanced runtests t_golden.xml t_unit.xml t_unit_phpunit1.xml t_unit_phpunit2.xml t_unit_phpunit3.xml url_parser1.phpt |
||
| References: | 1 | Groups: | php.pres |
| Request: | Send a blank email to pres+get-724@lists.php.net to get a copy of this message | ||
On Wed, 2003-05-14 at 00:12, Sebastian Bergmann wrote:
> Sterling Hughes wrote:
> > class url_parser_t extends PHPUnit_TestCase {
>
> "Convention" has it that the test class should be prefixed with
> "Test_", for instance if your testing class "Foo" you would use the
> following:
>
> <?php
> class Foo {}
> class Test_Foo extends PHPUnit_TestCase {}
> ?>
>
> Wolfram's HTML GUI for PHPUnit 0.x requires the above naming scheme
> to work properly.
>
Hmm, what HTML GUI? It works fine from the command line at least.
-Sterling
--
"C makes it easy to shoot yourself in the foot; C++ makes it harder,
but when you do, it blows away your whole leg."
- Bjarne Stroustrup