diff options
author | Stig Bakken <ssb@php.net> | 2000-08-27 19:46:06 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 2000-08-27 19:46:06 +0000 |
commit | 315f4f5658cf22a17ba06fa2ca2f3d890355873f (patch) | |
tree | 3dd1134c1d1c3821b48fab806884123f09b2d21f /tests/lang/011.phpt | |
parent | 7eeda99a055df5a510d3d20526e9adcb42fecdb0 (diff) | |
download | php-git-315f4f5658cf22a17ba06fa2ca2f3d890355873f.tar.gz |
@PHP 3 regression testing framework re-born (Stig)
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.
Diffstat (limited to 'tests/lang/011.phpt')
-rw-r--r-- | tests/lang/011.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/lang/011.phpt b/tests/lang/011.phpt new file mode 100644 index 0000000000..e648623845 --- /dev/null +++ b/tests/lang/011.phpt @@ -0,0 +1,25 @@ +--TEST-- +Testing nested functions +--POST-- +--GET-- +--FILE-- +<?php +function F() +{ + $a = "Hello "; + return($a); +} + +function G() +{ + static $myvar = 4; + + echo "$myvar "; + echo F(); + echo "$myvar"; +} + +G(); +?> +--EXPECT-- +4 Hello 4 |