~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/soap/tests/server011.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
SOAP Server 11: bind
 
3
--SKIPIF--
 
4
<?php require_once('skipif.inc'); ?>
 
5
--GET--
 
6
wsdl
 
7
--FILE--
 
8
<?php
 
9
function Add($x,$y) {
 
10
  return $x+$y;
 
11
}
 
12
 
 
13
$server = new soapserver(dirname(__FILE__)."/test.wsdl");
 
14
ob_start();
 
15
$server->handle();
 
16
$wsdl = ob_get_contents();
 
17
ob_end_clean();
 
18
if ($wsdl == file_get_contents(dirname(__FILE__)."/test.wsdl")) {
 
19
  echo "ok\n";
 
20
} else {
 
21
        echo "fail\n";
 
22
}
 
23
?>
 
24
--EXPECT--
 
25
ok