summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRodrigo Prado <royopa@gmail.com>2019-04-14 21:40:27 -0300
committerNikita Popov <nikita.ppv@gmail.com>2019-04-15 15:57:11 +0200
commit8e68a9d9eb28e333baa4bd60d332d49e5e61520d (patch)
treefe34079405dd9e5bb3f74161c732f61a657edc04 /ext
parent2d7d5ab5c6484c6d3e16a8f15e5068ea0b0f566c (diff)
downloadphp-git-8e68a9d9eb28e333baa4bd60d332d49e5e61520d.tar.gz
Add test for curl_version()
Diffstat (limited to 'ext')
-rw-r--r--ext/curl/tests/curl_version_basic_001.phpt31
1 files changed, 31 insertions, 0 deletions
diff --git a/ext/curl/tests/curl_version_basic_001.phpt b/ext/curl/tests/curl_version_basic_001.phpt
new file mode 100644
index 0000000000..803e9f689d
--- /dev/null
+++ b/ext/curl/tests/curl_version_basic_001.phpt
@@ -0,0 +1,31 @@
+--TEST--
+Test curl_version() basic functionality
+--SKIPIF--
+<?php
+ if (!extension_loaded("curl")) {
+ exit("skip curl extension not loaded");
+ }
+?>
+--FILE--
+<?php
+ $info_curl = curl_version();
+ var_dump($info_curl["version_number"]);
+ var_dump($info_curl["age"]);
+ var_dump($info_curl["features"]);
+ var_dump($info_curl["ssl_version_number"]);
+ var_dump($info_curl["version"]);
+ var_dump($info_curl["host"]);
+ var_dump($info_curl["ssl_version"]);
+ var_dump($info_curl["libz_version"]);
+ var_dump(array_key_exists("protocols", $info_curl));
+?>
+--EXPECTF--
+int(%i)
+int(%i)
+int(%i)
+int(%i)
+string(%i) "%s"
+string(%i) "%s"
+string(%i) "%s"
+string(%i) "%s"
+bool(true)