--TEST-- SoapServer in non WSDL mode without required options --EXTENSIONS-- soap --FILE-- getMessage(), PHP_EOL; } try { $client = new ExtendedSoapServer(null); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } echo "Empty \$options array\n"; $options = []; try { $client = new SoapServer(null, $options); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { $client = new ExtendedSoapServer(null, $options); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } echo "\$options array only sets \"uri\" option\n"; $options = ['uri' => 'https://example.com']; try { $client = new SoapServer(null, $options); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { $client = new ExtendedSoapServer(null, $options); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } ?> --EXPECT-- $options not provided SOAP-ENV:ServerSoapServer::__construct(): 'uri' option is required in nonWSDL mode