Re: Basic phpt question?!
| From: | Mark Wiesemann | Date: | Wed, 16 May 2007 13:46:34 +0000 |
| Subject: | Re: Basic phpt question?! | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-46790@lists.php.net to get a copy of this message | ||
Hi,
Pieter Online wrote:
> I just can't get this basic test foo.phpt of passing the value 123 right!!!:
>
> --TEST--
> foo parameter
> --GET--
> foo=123
> --FILE--
> <?php
> var_dump($_GET['foo']);
> ?>
> --EXPECT--
> string(3) "123"
>
>>pear run-tests foo.phpt
> gives:
>
> 0 PASSED TESTS
> 0 SKIPPED TESTS
> 1 FAILED TESTS:
>
> The foo.out gives:
> NULL
You need to use:
pear run-tests -c [php-cgi] foo.phpt
(with [php-cgi] being the name of your CGI PHP executable)
Regards,
Mark
--
http://www.markwiesemann.eu