List Info

Thread: Basic phpt question?!




Basic phpt question?!
user name
2007-05-16 07:57:23
Hello All,

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

Can you please help me out.

Thanks,
Pieter

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: Basic phpt question?!
user name
2007-05-16 08:46:34
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

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )