summaryrefslogtreecommitdiff
path: root/ext/curl/tests/curl_share_close_basic001.phpt
diff options
context:
space:
mode:
authorBarry O Sullivan <barry@tercet.io>2017-08-02 21:55:08 +0100
committerJoe Watkins <krakjoe@php.net>2017-08-04 12:41:08 +0100
commita1a949d89c86c9687346b9e5e245b8a36333d0f1 (patch)
treebb71c41a61744abbefe2d417cf22d0bdc34e7bb5 /ext/curl/tests/curl_share_close_basic001.phpt
parentb1cf87a4e6ef58987107709f89470168fd928452 (diff)
downloadphp-git-a1a949d89c86c9687346b9e5e245b8a36333d0f1.tar.gz
Add test for curl_share_close
Diffstat (limited to 'ext/curl/tests/curl_share_close_basic001.phpt')
-rw-r--r--ext/curl/tests/curl_share_close_basic001.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/curl/tests/curl_share_close_basic001.phpt b/ext/curl/tests/curl_share_close_basic001.phpt
new file mode 100644
index 0000000000..8addd5de4e
--- /dev/null
+++ b/ext/curl/tests/curl_share_close_basic001.phpt
@@ -0,0 +1,19 @@
+--TEST--
+curl_share_close basic test
+--SKIPIF--
+<?php if( !extension_loaded( 'curl' ) ) print 'skip'; ?>
+--FILE--
+<?php
+
+$sh = curl_share_init();
+//Show that there's a curl_share resource
+var_dump($sh);
+
+curl_share_close($sh);
+//Show that resource is no longer a curl_share, and is therefore unusable and "closed"
+var_dump($sh);
+
+?>
+--EXPECTF--
+resource(%d) of type (curl_share)
+resource(%d) of type (Unknown) \ No newline at end of file