Re: question on writing tests
| From: | Marcus Boerger | Date: | Fri, 02 Jun 2006 08:26:54 +0000 |
| Subject: | Re: question on writing tests | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-26801@lists.php.net to get a copy of this message | ||
Hello Ligaya,
in head php behaves different depending on the unicode_semantics ini
setting. For example var_dump("Hello") shows as string(5) "Hello" in
all versions up to 5.* and HEAD in native mode. If you turn on unicode
in HEAD the output changes to unicode(5) "Hello". To allow to test
against both modes in a single phpt file you can add a second expect
block whose name is preceeded with a U, e.g. --EXPECT-- -> --UEXPECT--
best regards
marcus
Friday, June 2, 2006, 8:42:02 AM, you wrote:
> I noticed that on some of the tests i wrote that a --UEXPECTF-- was
> added, but I can not find an explanation of what that is for on the
> http://qa.php.net/write-test.php page. Can someone please
> explain what
> it is and if it is something I need to add to the tests I am writing. I
> don't want to add work after all.
> I am writing the tests on PHP version 5.1.4, Windows XP SP2 (yeah i know
> - I swear I am in the process on learning Ubuntu). Anything I should
> keep in mind - or should I just keep going on my merry way?
> Respectfully,
> Ligaya Turmelle
Best regards,
Marcus