--EXPECTREGEX-- examples

From: Date: Mon, 09 Mar 2009 18:40:55 +0000
Subject: --EXPECTREGEX-- examples
Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-5243@lists.php.net to get a copy of this message
Hey list, I have a (IMHO) pretty weird test case that I'm trying to write. The objective is to make the code produce an include error, and then to check for the basics in the error message. I used --INI-- to force display_errors etc. and narrowed down my include_path to ".". Now I have an --EXPECT-- in my test which works now, but as soon as I edit the file, the test breaks (of course), think line numbers, paths. So I thought I'd try to use --EXPECTREGEX-- to parse the error message. ;-) I can't find a suitable example for --EXPECTREGEX-- though? Also, does it allow multiple regex', or one? Any pointers, e.g. exisiting test cases? Thanks, Till

« previous php.pear.qa (#5243) next »