summaryrefslogtreecommitdiff
path: root/ext/date/tests/microtime_basic.phpt
diff options
context:
space:
mode:
authorandy wharmby <wharmby@php.net>2009-01-22 14:11:08 +0000
committerandy wharmby <wharmby@php.net>2009-01-22 14:11:08 +0000
commit0d4228940cccd1cbb7e8f04aec2768f66e3444b4 (patch)
treef316bffa6173b9c1dace3b51bd2fb5fede3e7c80 /ext/date/tests/microtime_basic.phpt
parentc70c7ca7f919c15e653c6a1ab446e70e8da05e72 (diff)
downloadphp-git-0d4228940cccd1cbb7e8f04aec2768f66e3444b4.tar.gz
New basic time()and microtime() tests. Tested on Windows, Linux and Linux 64 bit
Diffstat (limited to 'ext/date/tests/microtime_basic.phpt')
-rw-r--r--ext/date/tests/microtime_basic.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/date/tests/microtime_basic.phpt b/ext/date/tests/microtime_basic.phpt
new file mode 100644
index 0000000000..88c4952295
--- /dev/null
+++ b/ext/date/tests/microtime_basic.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Test return type and value for expected input microtime()
+--FILE--
+<?php
+/*
+ * proto mixed microtime([bool get_as_float])
+ * Function is implemented in ext/standard/microtime.c
+*/
+
+var_dump(microtime());
+var_dump(microtime(true));
+var_dump(microtime(false));
+
+?>
+===DONE===
+--EXPECTF--
+string(%d) "%s %s"
+float(%s)
+string(%d) "%s %s"
+===DONE===