mirror of
https://github.com/php/php-src.git
synced 2024-10-05 08:46:11 +00:00
315f4f5658
Took the old PHP 3 regression testing framework and rewrote it in PHP. Should work on both Windows and UNIX, however I have not tested it on Windows. See tests/README for how to write tests. Added the PHP 3 tests and converted most of them.
18 lines
200 B
PHP
18 lines
200 B
PHP
--TEST--
|
|
Testing $argc and $argv handling
|
|
--POST--
|
|
--GET--
|
|
ab+cd+ef+123+test
|
|
--FILE--
|
|
<?php
|
|
for($i=0;$i<$argc;$i++) {
|
|
echo "$i: ".$argv[$i]."\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
0: ab
|
|
1: cd
|
|
2: ef
|
|
3: 123
|
|
4: test
|