Re: run-test and .php

From: Date: Tue, 23 Nov 2004 06:28:37 +0000
Subject: Re: run-test and .php
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34514@lists.php.net to get a copy of this message
On Nov 22, 2004, at 11:49 PM, Daniel Convissor wrote:
On Mon, Nov 22, 2004 at 10:21:08PM -0600, Ryan King wrote:
Ok, I know I made a mistake, but after running this the file (bug2742.php) was gone! Not moved anywhere, gone! I'm don't think this is a good way to handle a user error! :-)
The follwing is an _approximation_ of what happens. The exact procedures may be a bit different, but it doesn't exactly matter... As you may have figured out by now, the PHP commands inside the .phpt file get executed, and if the execution fails, get turned into a .php file so you can examine line by line what went wrong. It also creates an .out, .diff and another file I can't remember the extension of right now that holds the expected output. But, the next time you run the test, the .php (and all the other related files) are blown away. So, the deletion of the .php test scrirpt is by design, since it's not really supposed to be THE test script. Now you know...
This all makes sense now. Greg says he has committed a fix for this in CVS, though I'm not sure how he's fixed it. -ryan

« previous php.pear.dev (#34514) next »