mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +08: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.
22 lines
257 B
PHP
22 lines
257 B
PHP
--TEST--
|
|
Nested If/ElseIf/Else Test
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php $a=1; $b=2;
|
|
if($a==0):
|
|
echo "bad";
|
|
elseif($a==3):
|
|
echo "bad";
|
|
else:
|
|
if($b==1):
|
|
echo "bad";
|
|
elseif($b==2):
|
|
echo "good";
|
|
else:
|
|
echo "bad";
|
|
endif;
|
|
endif?>
|
|
--EXPECT--
|
|
good
|