--TEST-- SoapServer constructor with an invalid encoding option --EXTENSIONS-- soap --FILE-- 'non-sense', ]; try { $client = new SoapServer($wsdl, $options); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } try { $client = new ExtendedSoapServer($wsdl, $options); } catch (Throwable $e) { echo $e::class, ': ', $e->getMessage(), PHP_EOL; } ?> --EXPECT-- SOAP-ENV:ServerSoapServer::__construct(): Invalid 'encoding' option - 'non-sense'