Re: Updates to the QA web site

From: Date: Thu, 07 Jun 2007 10:17:48 +0000
Subject: Re: Updates to the QA web site
References: 1 2 3 4  Groups: php.qa 
Request: Send a blank email to php-qa+get-33920@lists.php.net to get a copy of this message
Marcus Boerger wrote:
Hello Zoe, "not particular easy to understand".... that's why sometimes we write documentation. As much as simply use a hardcoded filename is pretty nice it comes with some small risks - copy'n'paste. And actually if you tell people to use the same two lines in their code it is in the same way easy enough. So the issue here with hardcoded names is that you might run more than one test and then get confused with your results and intermediate files. best regards marcus I compromised. I took out the example that Tony objected to - honestly I think it was ugly code - but I added a paragraph that suggests that people use temporary file names that are in some way related to the test case. I also refer to the run-tests.php --keep option so if anyone does go the route that I initially went to name temporay files they know how to debug it when it doesn't work :-)
I hope this meets both your and Tony's concerns, let me know if not. My next plan is to add something about test case dependency on loaded extensions. I noticed that (at least) on of ours depends on SPL and so I think it needs something in the --SKIPIF--. I also noticed that Tony corrected another one where we'd missed a similar check. Zoe Slattery IBM

« previous php.qa (#33920) next »