run-test and .php
| From: | Ryan King | Date: | Tue, 23 Nov 2004 04:21:08 +0000 |
| Subject: | run-test and .php | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-34507@lists.php.net to get a copy of this message | ||
Hi-
I've just started using pear run-tests and .phpt with the Config package and have some questions/concerns.
First of all, I accidentally used a .php extension for a test file and when I typed:
pear run-tests bug2742.php
I got:
[quote]
FAIL simple test [bug2742.php]
Notice: Undefined index: in RunTest.php on line 97
Notice: Undefined index: FILE in RunTest.php on line 160
Notice: Undefined index: EXPECT in RunTest.php on line 209
PASS (unnamed test) [bug2742.php]
[/quote]
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! :-)
Any insights?
Ok, after I recreated the file and named it bug2742.phpt, I was able to run the test. However it always appears to run the test twice. Here's my output:
$ pear run-tests bug2742.phpt
FAIL bug 2742 regression [bug2742.phpt]
FAIL bug 2742 regression [bug2742.phpt]
FAILED TESTS:
bug2742.phpt
Any insights?
thanks,
ryan