com php-src: Test is_soap_fault() function: ext/s oap/tests/fault001.phpt
| From: | Nikita Popov | Date: | Tue, 05 Sep 2017 14:44:50 +0000 |
| Subject: | com php-src: Test is_soap_fault() function: ext/s oap/tests/fault001.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99269@lists.php.net to get a copy of this message | ||
Commit: 7340466372c10f623788df6add0a0bf71af01854
Author: Ken Guest <kguest@php.net> Mon, 28 Aug 2017 23:13:18 +0100
Committer: Nikita Popov <nikita.ppv@gmail.com> Tue, 5 Sep 2017 16:44:50 +0200
Parents: 26572b34e436fe6c5a4a7f81d1f2b4a4437eb071
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7340466372c10f623788df6add0a0bf71af01854
Log:
Test is_soap_fault() function
Changed paths:
A ext/soap/tests/fault001.phpt
Diff:
diff --git a/ext/soap/tests/fault001.phpt b/ext/soap/tests/fault001.phpt
new file mode 100644
index 0000000..221641d
--- /dev/null
+++ b/ext/soap/tests/fault001.phpt
@@ -0,0 +1,13 @@
+--TEST--
+is_soap_fault 1: test against null
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+var_dump(is_soap_fault(null));
+$fault = new SoapFault("code", "message");
+var_dump(is_soap_fault($fault));
+?>
+--EXPECT--
+bool(false)
+bool(true)