Index of /yeast/cluster/database/php-3.0.14/test

      Name                    Last modified       Size  Description

[DIR] Parent Directory 20-Jan-2000 21:09 - [TXT] README 10-Sep-1998 18:20 1k [DIR] ary/ 13-Jan-2000 08:18 - [DIR] basic/ 13-Jan-2000 08:18 - [DIR] classes/ 13-Jan-2000 08:18 - [DIR] dbm/ 13-Jan-2000 08:18 - [DIR] file/ 13-Jan-2000 08:18 - [DIR] func/ 13-Jan-2000 08:18 - [DIR] general_functions/ 13-Jan-2000 08:18 - [DIR] interbase/ 13-Jan-2000 08:18 - [DIR] lang/ 13-Jan-2000 08:18 - [DIR] math/ 13-Jan-2000 08:18 - [DIR] reg/ 13-Jan-2000 08:18 - [DIR] strings/ 13-Jan-2000 08:18 - [TXT] template 16-Sep-1997 14:22 1k [TXT] testall 30-Jun-1999 20:03 1k [TXT] testmenu 28-May-1998 13:54 1k [TXT] testphp 22-Jun-1999 03:28 1k [TXT] testphp.awk 25-Dec-1999 19:53 2k

PHP Regression Tests
=======================

Simply type: testmenu
to run the tests.

You may use the testphp program to write your own regression tests
or to test your scripts.

The format of the .tst files is quite simple.  There are 5 possible
sections.  Test, Post, Get, File and Expect.  The Test section 
contains the description of the test.  The Post section contains any
post data that the script might need.  The Get section contains any
Get data.  Note that both the Post and the Get sections need to have
this data in url-encoded format.  The File section contains the actual
script and the Expect section is the expected output.  Blank lines are
ignored in the expected output.

A simple example which takes one argument through the POST method
and one through the GET and displays these would be:

--TEST--
Simple GET and POST test                                      ...
--POST--
a=Hello
--GET--
b=There
--FILE--
<?php echo "$a $b">
--EXPECT--
Content-type: text/html
Hello There