- SOAP interface for PHP
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@165 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
parent
e1b3542a2a
commit
d4f8dedfca
5 changed files with 107 additions and 3 deletions
40
php/TestSOAPRequester.php
Normal file
40
php/TestSOAPRequester.php
Normal file
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
/**
|
||||
* Unittest for the SOAPRequester.
|
||||
* @author Jan Dittberner <jan@dittberner.info>
|
||||
* @version $Id$
|
||||
*/
|
||||
require_once('PHPUnit.php');
|
||||
require_once('SOAPRequester.php');
|
||||
|
||||
/**
|
||||
* TestCase for SOAPRequester.
|
||||
*/
|
||||
class TestSOAPRequester extends PHPUnit_TestCase {
|
||||
/**
|
||||
* SOAPRequester-Instanz.
|
||||
*/
|
||||
var $requester;
|
||||
|
||||
/**
|
||||
* Sets up the test case.
|
||||
* @see PHPUnit_TestCase#setUp()
|
||||
*/
|
||||
function setUp() {
|
||||
$settings = array('protocol' => 'http',
|
||||
'hostname' => 'localhost',
|
||||
'portnumber' => 8080,
|
||||
'path' => '');
|
||||
$this->requester = new SOAPRequester($settings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the SOAPRequester class's callEcho method.
|
||||
* @see SOAPRequester#callEcho(string)
|
||||
*/
|
||||
function testCallEcho() {
|
||||
$result = $this->requester->callEcho('Test');
|
||||
$this->assertEquals('TestTest', $result);
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue