AW: [PEAR-DEV] Validate_DE
| From: | Stephan Schmidt | Date: | Tue, 21 Oct 2003 08:58:23 +0000 |
| Subject: | AW: [PEAR-DEV] Validate_DE | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22863@lists.php.net to get a copy of this message | ||
Hi,
> function phone0700($number) should be in the phoneNumber validation and
> uses options. I would like to see phone code options too in the
> phoneNumber method (calling back the dialingCode?).
OK, I'll implement changes later this week...
> The different phone prefices (mobile, commercial,...) should be a
> property and additionals number should be set, imho.
Then it won't be possible to call the methods statically?
Or is there a way to achieve this?
Does this work?
class foo
{
static $bar = array(1,2,3);
function myFunc()
{
print foo::bar;
}
}
> Write unit tests and you can go ahead.
Do I need to use PHPUnit? Or can a write a small function that asserts the
results? All I ever get is true or false, so I think PHPUnit is not
needed...
Stephan