Jan Dittberner
d4f8dedfca
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@165 a67ec6bc-e5d5-0310-a910-815c51eb3124
40 lines
No EOL
838 B
PHP
40 lines
No EOL
838 B
PHP
<?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);
|
|
}
|
|
}
|
|
?>
|