summaryrefslogtreecommitdiff
path: root/ext/sodium/tests/installed.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sodium/tests/installed.phpt')
-rw-r--r--ext/sodium/tests/installed.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/sodium/tests/installed.phpt b/ext/sodium/tests/installed.phpt
new file mode 100644
index 0000000000..43ad4fdd86
--- /dev/null
+++ b/ext/sodium/tests/installed.phpt
@@ -0,0 +1,21 @@
+--TEST--
+Check for libsodium presence
+--SKIPIF--
+<?php if (!extension_loaded("sodium")) print "skip"; ?>
+--FILE--
+<?php
+echo "libsodium extension is available";
+/*
+ you can add regression tests for your extension here
+
+ the output of your test code has to be equal to the
+ text in the --EXPECT-- section below for the tests
+ to pass, differences between the output and the
+ expected text are interpreted as failure
+
+ see php5/README.TESTING for further information on
+ writing regression tests
+*/
+?>
+--EXPECT--
+libsodium extension is available