diff options
author | Barry O Sullivan <barry@tercet.io> | 2017-08-02 21:55:08 +0100 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2017-08-04 12:41:08 +0100 |
commit | a1a949d89c86c9687346b9e5e245b8a36333d0f1 (patch) | |
tree | bb71c41a61744abbefe2d417cf22d0bdc34e7bb5 /ext/curl/tests/curl_share_close_basic001.phpt | |
parent | b1cf87a4e6ef58987107709f89470168fd928452 (diff) | |
download | php-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.phpt | 19 |
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 |