Does SimpleTest turn off error/warnings?
Moderator: General Moderators
Does SimpleTest turn off error/warnings?
I just spent more time than I would have liked tracking down a typo in a variable name. Normally I expect PHP to catch that for me, but it seems like SimpleTest turns off notices?
That is what I suspected.
I think if you are running a group test, and you are adding files, there is a bit of funky code which includes the code that does change the error reporting level. IIRC, it had something to do with the possibility of a PHP Fatal error in the test code, and having SimpleTest being able to run the other tests around it (but it was a while back when I ran into this, and I did not go back and check the code, so I could be completely off base). I think I posed something about this to the simpletest list, but I don't remember the timeframe or even any keywords that would help target a search. Sorry
Regards,
Jason
I think if you are running a group test, and you are adding files, there is a bit of funky code which includes the code that does change the error reporting level. IIRC, it had something to do with the possibility of a PHP Fatal error in the test code, and having SimpleTest being able to run the other tests around it (but it was a while back when I ran into this, and I did not go back and check the code, so I could be completely off base). I think I posed something about this to the simpletest list, but I don't remember the timeframe or even any keywords that would help target a search. Sorry
Regards,
Jason
That sounds exactly like what I was doing, so I suspect thats it. I'll try digging around the addTestFile method. Thanks.
(Sill waiting for my copy of your book to arrive. I've at least gotten the shipping notice... but they seemed a little "unrealistic" in their delivery timeframe -- same day, when it shipped late afternoon on friday)
(Sill waiting for my copy of your book to arrive. I've at least gotten the shipping notice... but they seemed a little "unrealistic" in their delivery timeframe -- same day, when it shipped late afternoon on friday)