Re: UEXPECTF is gone: any way to write "portable" tests?

From: 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:
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?
Sure, I can prepare a patch.
It 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.
Unsexy maintenance taks ... ;-) Ulf

« previous php.qa (#64394) next »