1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/soap/tests/server012.phpt
Christoph M. Becker e014b5f506 Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3:
  Fix failing soap tests on Windows
2024-09-27 19:59:30 +02:00

27 lines
682 B
PHP

--TEST--
SOAP Server 12: WSDL generation
--SKIPIF--
<?php
if (PHP_OS_FAMILY === "Windows") {
die("skip currently unsupported on Windows");
}
?>
--EXTENSIONS--
soap
--GET--
WSDL
--FILE--
<?php
function Add($x,$y) {
return $x+$y;
}
$server = new soapserver(null,array('uri'=>"http://testuri.org"));
$server->addfunction("Add");
$server->handle();
echo "ok\n";
?>
--EXPECT--
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>WSDL generation is not supported yet</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>