--TEST--
Hello World test
--FILE--
<?php
echo "Hello World";
?>
--EXPECT--
Hello World
--TEST--
Input Filter test
--SKIPIF--
if(!extension_loaded('input_filter')) print "skip";
--POST--
a=<b>1</b>
--GET--
b=<i>2</i>
--FILE--
<?php
echo $_POST['a'];
echo $_GET['b'];
?>
--EXPECT--
12
TIME START 2003-10-15 10:19:50 ==================================== PASS Hello World test [hello.phpt] PASS Input Filter test [filter.phpt] ==================================== TIME END 2003-10-15 10:19:50 ==================================== TEST RESULT SUMMARY ------------------------------------ Number of tests : 2 Tests skipped : 0 ( 0.0%) Tests warned : 0 ( 0.0%) Tests failed : 0 ( 0.0%) Tests passed : 2 (100.0%) ------------------------------------ Time taken : 0 seconds ====================================
TIME START 2003-10-15 10:32:48 ==================================== PASS Hello World test [hello.phpt] FAIL Input Filter test [filter.phpt] ==================================== TIME END 2003-10-15 10:32:48 ==================================== TEST RESULT SUMMARY ------------------------------------ Number of tests : 2 Tests skipped : 0 ( 0.0%) Tests warned : 0 ( 0.0%) Tests failed : 1 (50.0%) Tests passed : 1 (50.0%) ------------------------------------ Time taken : 0 seconds ==================================== ==================================== FAILED TEST SUMMARY ------------------------------------ YIV test [filter.phpt] ==================================== Some tests failed and a complete report has been saved to /tmp/php_test_results_20031015.txt
==================================================== /home/rasmus/t/filter.phpt ==================================================== --TEST-- YIV test --SKIPIF-- if(!extension_loaded('input_filter')) print "skip"; --POST-- a=<b>1</b> --GET-- b=<i>2</i> --FILE-- <?php echo $_POST['a']; echo $_GET['b']; ?> --EXPECT-- 1 2 ==================================================== ---- EXPECTED OUTPUT 1 2 ---- ACTUAL OUTPUT 12 ---- FAILED
--TEST-- | title of the test |
--SKIPIF-- | php code which prints "skip" |
--POST-- | POST variables passed to test script |
--GET-- | GET variables passed to test script |
--INI-- | each line contains an ini setting e.g. foo=bar |
--FILE-- | the test script |
--EXPECT-- | the expected output from the test script |
--EXPECTF-- | sscanf version of expected output |
--EXPECTREGEX-- | regex version of expected output |