Re: Unit testing HTML_QuickForm2 forms
| From: | Christian Weiske | Date: | Tue, 05 Jul 2011 13:00:34 +0000 |
| Subject: | Re: Unit testing HTML_QuickForm2 forms | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-31159@lists.php.net to get a copy of this message | ||
Hi Alexey,
> > I'm writing unit tests for my QF2 form validation rules and do it
> > like this:
> Unless you are doing something complex in your Rule (by complex I
> mean overriding methods other that validateOwner() /
> getJavascriptCallback() and setConfig()), you can follow the pattern
> we use in our unit tests:
Sorry, I described the problem wrong. What I meant:
I am writing unit tests for my QF2 forms and want to verify the
validation rules. I did not mean "unit tests for my custom rules".
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-= Geeking around in the name of science since 1982 =-