Re: UEXPECTF is gone: any way to write "portable" tests?
| From: | Ulf Wendel | Date: | Wed, 23 Jul 2008 12:27:30 +0000 |
| Subject: | Re: UEXPECTF is gone: any way to write "portable" tests? | ||
| References: | 1 2 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-64392@lists.php.net to get a copy of this message | ||
Lars Strojny schrieb:
%string/unicode%(3) "PHP" This would mean less duplication of expected test output and therefore easier readable (and maintainable) tests.Good idea. Georg once used %s(3) "PHP". 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. It still means that I have to go through some tests which use UEXPECTF, but I understand the readability argument. Ulf