How to EXPECT _error
| From: | Àlex Corretgé | Date: | Tue, 07 Apr 2009 20:53:48 +0000 |
| Subject: | How to EXPECT _error | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-64741@lists.php.net to get a copy of this message | ||
Hi, I'm confused to write _error .phpt.
http://testfest.php.net/repos/testfest/CataloniaUG/tests/func/time_nanosleep_error1.phpt
I write a wrong instruction in the --FILE-- section :
$nano = time_nanosleep('A', 100000);
And in the --EXPECT-- section I put the Warning message
Warning: time_nanosleep() expects parameter 1 to be long, string given
Is this correct?
thanks
Atentament / Kind Regards
Àlex Corretgé
Serveis Informàtics Corretgé.com SLU
http://corretge.cat/
LinkedIn: http://www.linkedin.com/in/corretge