diff --git a/ext/soap/tests/bugs/bug75421.phpt b/ext/soap/tests/bugs/bug75421.phpt new file mode 100644 index 0000000000..34b8552f40 --- /dev/null +++ b/ext/soap/tests/bugs/bug75421.phpt @@ -0,0 +1,25 @@ +--TEST-- +SoapHeader allows an invalid URL as the actor string, 'invalid actor' warning should be raised. +--SKIPIF-- + +--FILE-- + +--CREDITS-- +PHP TestFest 2017 - PHPDublin - Ken Guest +--EXPECTF-- +bool(false) +Warning: SoapHeader::SoapHeader(): Invalid actor in %s on line %d diff --git a/ext/soap/tests/header001.phpt b/ext/soap/tests/header001.phpt new file mode 100644 index 0000000000..9ba9961e11 --- /dev/null +++ b/ext/soap/tests/header001.phpt @@ -0,0 +1,33 @@ +--TEST-- +SoapHeader emits specific warnings depending on invalid parameters passed to constructor. +--SKIPIF-- + +--FILE-- + +--CREDITS-- +PHP TestFest 2017 - PHPDublin - Ken Guest +--EXPECTF-- +Warning: SoapHeader::SoapHeader(): Invalid namespace in %s on line %d + +Warning: SoapHeader::SoapHeader(): Invalid header name in %s on line %d + +Warning: SoapHeader::SoapHeader(): Invalid actor in %s on line %d + +Warning: SoapHeader::SoapHeader(): Invalid actor in %s on line %d + +Warning: SoapHeader::SoapHeader(): Invalid actor in %s on line %d diff --git a/ext/soap/tests/param001.phpt b/ext/soap/tests/param001.phpt new file mode 100644 index 0000000000..498838abd2 --- /dev/null +++ b/ext/soap/tests/param001.phpt @@ -0,0 +1,21 @@ +--TEST-- +SoapParam should emit a warning if the parameter name is an empty string +--SKIPIF-- + +--FILE-- + +--CREDITS-- +PHP TestFest 2017 - PHPDublin - Ken Guest +--EXPECTF-- +Warning: SoapParam::SoapParam(): Invalid parameter name in %s on line %d +object(SoapParam)#%d (%d) { + ["param_name"]=> + string(4) "Name" + ["param_data"]=> + int(1) +} diff --git a/ext/soap/tests/var001.phpt b/ext/soap/tests/var001.phpt new file mode 100644 index 0000000000..149fd81d21 --- /dev/null +++ b/ext/soap/tests/var001.phpt @@ -0,0 +1,13 @@ +--TEST-- +SoapVar should emit a warning if the type id is invalid (e.g. "Invalid") +--SKIPIF-- + +--FILE-- + +--CREDITS-- +PHP TestFest 2017 - PHPDublin - Ken Guest +--EXPECTF-- +Warning: SoapVar::SoapVar(): Invalid type ID in %s on line %d