diff options
| author | andy wharmby <wharmby@php.net> | 2009-01-22 14:11:08 +0000 |
|---|---|---|
| committer | andy wharmby <wharmby@php.net> | 2009-01-22 14:11:08 +0000 |
| commit | 0d4228940cccd1cbb7e8f04aec2768f66e3444b4 (patch) | |
| tree | f316bffa6173b9c1dace3b51bd2fb5fede3e7c80 /ext/date/tests/microtime_basic.phpt | |
| parent | c70c7ca7f919c15e653c6a1ab446e70e8da05e72 (diff) | |
| download | php-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.phpt | 20 |
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=== |
