Re: SKIPIF print vs die
| From: | zoe | Date: | Tue, 28 Apr 2009 06:28:40 +0000 |
| Subject: | Re: SKIPIF print vs die | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-64807@lists.php.net to get a copy of this message | ||
Daniel Convissor wrote:
Hi Folks: I'm reading up on .phpt's because I'll be giving a tutorial at New York's test fest event. The SKIPIF section info at http://qa.php.net/write-test.php uses print 'skip whatever' rather than die('skip whatever'), which is commonly used in actual tests. die() seems preferable since it will halt undesirable execution when calling the .phpt file directly (as discussed at the bottom of the write-test web page. Yes, I see your point. From that point of view using die() is preferable.
I'm wondering what people think about this and whether write-test needs tweaking. I'll tweak it no one comes up with a counter argument.Z