Re: UEXPECTF is gone: any way to write "portable" tests?
| From: | Ulf Wendel | Date: | Wed, 23 Jul 2008 12:37:15 +0000 |
| Subject: | Re: UEXPECTF is gone: any way to write "portable" tests? | ||
| References: | 1 2 3 4 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-64394@lists.php.net to get a copy of this message | ||
Lars Strojny schrieb:
Sure, I can prepare a patch.I did not like that as it does match both string(3) "PHP" and unicode(3) "PHP": no way to detect a bug. As long as "%string/unicode%" gets evaluated as "unicode" under PHP 6 and as "string" under PHP 5, I'm fine with the change.OK, fine. I have currently no time implementing it, do you?
Unsexy maintenance taks ... ;-) UlfIt still means that I have to go through some tests which use UEXPECTF, but I understand the readability argument.That should be scriptable as you do a diff of the EXPECT/UEXPECT section, fine the differing lines, and replace them accordingly. So no big deal.