XML_RPC
[ class tree: XML_RPC ] [ index: XML_RPC ] [ all elements ]

File: protoport.php

Source Location: /XML_RPC-1.4.0/tests/protoport.php

Classes:

Page Details:

Tests that properties of XML_RPC_Client get properly set

Any individual tests that fail will have their name, expected result and actual result printed out. So seeing no output when executing this file is a good thing.

Can be run via CLI or a web server.

PHP versions 4 and 5

LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.

Includes:

require_once('XML/RPC.php') [line 45]
Get the needed class from the PEAR installation
require_once('../RPC.php') [line 50]
Get the needed class from the parent directory

compare [line 65]

void compare( array $expect, object $actual, string $test_name)

Compare the test result to the expected result

If the test fails, echo out the results.



Parameters

array   $expect   the array of object properties you expect from the test
object   $actual   the object results from the test
string   $test_name   the name of the test
[ Top ]



Documentation generated on Sun, 14 Aug 2005 16:30:10 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.