$42 GRAYBYTE WORDPRESS FILE MANAGER $55

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cpanel/ea-php51/root/usr/share/doc/ea-php51-php-common/

HOME
Current File : /opt/cpanel/ea-php51/root/usr/share/doc/ea-php51-php-common//README.TESTING2
[IMPORTANT NOTICE]
------------------
This is an addendum to README.TESTING with additional information 
specific to run-tests2.php.

run-tests2.php is backward compatible with tests developed for
the original run-tests.php script.  run-tests2 is *not* used by
'make test'.  run-tests2 was developed to provide support for
testing PHP under it's primary environment, HTTP, and can run the
PHP tests under any of the SAPI modules that are direct executables, 
or are accessable via HTTP.

[New features]
----------------
* Command line interface:
  You can run 'php run-tests2.php -h' to get all the possible options.
* Configuration file:
  the -c argument will allow you to use a configuration file.  This is
  handy if you are testing multiple environments and need various options
  depending on the environment.
  see run-tests-config.php for details.
* CGI Emulation:
  Will emulate a CGI environment when testing with the cgi sapi executable.
* HTTP testing:
  can be configured to run test scripts through an HTTP server running
  on localhost.  localhost is required since either the web server must
  alias a directory to the php source directory, or the test scripts
  must be copied to a directory under the web server 
  (see config options TEST_WEB_BASE_URL, TEST_BASE_PATH, and TEST_WEB_EXT)
* New sections supported for test files (see below)

When running tests over http, tests that require ini settings different that what
the web server runs under will be skipped.  Since the test harness defines a number
of ini settings by default, the web server may require special configuration to
make testing work.

[Example Usage]
----------------
Some (but not all!) examples of usage:

1. run tests from the php source directory
    php run-tests2.php -p /path/to/php-cli

2. run tests using cgi emulation
    php run-tests2.php -p /path/to/php-cgi

3. run tests over http, copying test files into document root
    php run-tests2.php -w -u http://localhost/test -m /path/to/htdocs/test

4. run tests over http, php sources have been aliased in web server
    php run-tests2.php -w -u http://localhost/test
    
5. run tests using configuration file
    php run-tests2.php -c /path/to/run-tests-config.php

6. run tests using configuration file, but overriding some settings:
   (config file must be first)
    php run-tests2.php -c /path/to/run-tests-config.php -w -t 3 -d /path/to/testdir

NOTE: configuration as described in README.TESTING still works.

[New Test Sections] 
----------------
In addition to the traditional test sections 
(see http://qa.php.net/write-test.php), several new sections are available 
under run-tests2.

--POST--
This is not a new section, but not multipart posts are supported for testing
file uploads, or other types of POST data.

--CGI--
This section takes no value.  It merely provides a simple marker for tests
that MUST be run as CGI, even if there is no --POST-- or --GET-- sections
in the test file.

--DESCRIPTION--
Not used for anything, just a section for documenting the test

--ENV--
This section get's eval()'d to help build an environment for the 
execution of the test.  This can be used to change environment
vars that are used for CGI emulation, or simply to set env vars
for cli testing.  A full example looks like:

  --ENV--
  return <<<END
  PATH_TRANSLATED=$filename
  PATH_INFO=$scriptname
  SCRIPT_NAME=$scriptname
  END;

Some variables are made easily available for use in this section, they
include:
  $filename     full native path to file, will become PATH_TRANSLATED
  $filepath     =dirname($filename)
  $scriptname   this is what will become SCRIPT_NAME unless you override it
  $docroot      the equivelant of DOCUMENT_ROOT under Apache
  $cwd          the directory that the test is being initiated from
  $this->conf   all run-tests2 configuration vars
  $this->env    all environment variables that will get passed to the test


--REQUEST--
This section is also eval'd, and is similar in nature to --ENV--.  However,
this section is used to build the url used in an HTTP request.  Valid values
to set in this section would include:
  SCRIPT_NAME   The inital part of the request url
  PATH_INFO     The pathinfo part of a request url
  FRAGMENT      The fragment section of a url (after #)
  QUERY_STRING  The query part of a url (after ?)

  --REQUEST--
  return <<<END
  PATH_INFO=/path/info
  END;

--HEADERS--
This section is also eval'd.  It is used to provide additional headers sent
in an HTTP request, such as content type for multipart posts, cookies, etc.

  --HEADERS--
  return <<<END
  Content-Type=multipart/form-data; boundary=---------------------------240723202011929
  Content-Length=100
  END;

--EXPECTHEADERS--
This section can be used to define what headers are required to be
received back from a request, and is checked in addition to the
regular expect sections.  For example:

  --EXPECTHEADERS--
  Status: 404




Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 7.37 AM
root / root
0755
CODING_STANDARDS
10.85 KB
23 Dec 2005 3.27 AM
root / root
0644
CREDITS
0.089 KB
22 Apr 2002 9.45 PM
root / root
0644
EXTENSIONS
22.632 KB
24 Jan 2006 1.07 AM
root / root
0644
LICENSE
3.143 KB
1 Jan 2006 7.30 PM
root / root
0644
NEWS
88.416 KB
23 Aug 2006 8.17 PM
root / root
0644
README.EXTENSIONS
1.533 KB
12 Oct 2001 6.32 AM
root / root
0644
README.EXT_SKEL
6.959 KB
29 Jun 2003 11.07 PM
root / root
0644
README.PARAMETER_PARSING_API
3.797 KB
3 Jan 2003 5.39 PM
root / root
0644
README.PHP4-TO-PHP5-THIN-CHANGES
4.629 KB
25 Aug 2004 5.01 AM
root / root
0644
README.SELF-CONTAINED-EXTENSIONS
4.656 KB
24 Oct 2002 4.35 AM
root / root
0644
README.STREAMS
15.065 KB
5 Mar 2003 4.46 AM
root / root
0644
README.SUBMITTING_PATCH
4.45 KB
23 Dec 2003 6.45 AM
root / root
0644
README.TESTING
6.355 KB
15 Apr 2004 10.27 PM
root / root
0644
README.TESTING2
4.807 KB
25 Mar 2003 2.45 PM
root / root
0644
README.UNIX-BUILD-SYSTEM
4.161 KB
3 Jul 2003 11.14 AM
root / root
0644
README.WIN32-BUILD-SYSTEM
6.143 KB
23 Dec 2003 9.51 AM
root / root
0644
README.input_filter
5.621 KB
6 Dec 2005 9.30 AM
root / root
0644
TSRM_LICENSE
1.283 KB
14 Jul 2025 4.15 PM
root / root
0644
ZEND_CHANGES
36.29 KB
31 Aug 2004 1.48 AM
root / root
0644
ZEND_LICENSE
2.749 KB
14 Jul 2025 4.15 PM
root / root
0644
php.ini-dist
41.26 KB
14 Jul 2025 4.15 PM
root / root
0644
php.ini-dist.mail-log
41.041 KB
15 Aug 2006 1.40 AM
root / root
0644
php.ini-recommended
45.025 KB
15 Aug 2006 1.40 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF