Source for file interop_client_run.php
Documentation is available at interop_client_run.php
// this script is usefull for quickly testing stuff, use the 'pretty' file for html output
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Shane Caraveo <Shane@Caraveo.com> |
// +----------------------------------------------------------------------+
// $Id: interop_client_run.php,v 1.11 2007/01/26 15:03:24 yunosh Exp $
if (isset ($_SERVER['SERVER_NAME'])) {
die ("full test run cannot be done via webserver.");
require 'Console/Getopt.php';
require_once 'interop_client.php';
$INTEROP_LOCAL_SERVER = TRUE; // add local server to endpoints
$iop = & new Interop_Client ();
$iop->showFaults = 0; // used in result table output
$args = Console_Getopt ::getopt ($_SERVER['argv'],
'c:dehl:m:np:r:s:t:v:wq',
if (PEAR ::isError ($args)) {
echo "\n" . $args->getMessage () . "\n\n";
interop_client_run.php [options]
-c pear|php-soap client type (not implemented yet)
-e fetch interop test information
-l list comma seperated list of endpoint names to skip
-m method_name specific soap method to test
-n do not save results to database
-p t|e print list of [t]ests or [e]ndpoints
-r string restrict tests to those whose name starts with...
-s server_name test a specific server
-t test_name run a specific set of tests
-v php|soapval run tests with specific param types (requires -t)
-w run wsdl tests only (requires -t)
print "Interop tests supported:\n";
foreach ($iop->tests as $test) {
if (!$iop->getEndpoints ($iop->currentTest )) {
die (" Unable to retrieve endpoints for $iop->currentTest\n" );
print " Interop Servers for $iop->currentTest:\n";
foreach ($iop->endpoints as $server) {
print " $server->name\n";
foreach ($args[0 ] as $arg) {
$iop->client_type = $arg[1 ];
$iop->skipEndpointList = split(',', $arg[1 ]);
$iop->testMethod = $arg[1 ];
} elseif ($arg[1 ] == 'e') {
if (!$iop->currentTest ) {
print "You need to specify a test with -t\n";
die ("invalid print argument\n");
$iop->specificEndpoint = $arg[1 ];
$iop->currentTest = $arg[1 ];
if ($arg[1 ] != 'php' && $arg[1 ] != 'soapval') {
die ('Incorrect value for argument v: ' . $arg[1 ] . "\n");
$iop->paramType = $arg[1 ];
// These are endpoints that are listed in the interop server, but do not realy
$bad = array ('Spheon JSOAP', 'Phalanx', 'SilverStream', 'SOAPx4 (PHP)',
'Virtuoso (development)', 'Zolera SOAP Infrastructure');
$iop->skipEndpointList = array_merge($iop->skipEndpointList , $bad);
foreach ($tests as $test) {
$iop->doTest (); // run a single set of tests using above options
// $iop->doGroupTests(); // run a group of tests set in $currentTest
$iop->doTests (); // run all tests, ignore above options
Documentation generated on Mon, 11 Mar 2019 15:06:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|