php-src/ext/date/tests/microtime_basic.phpt

21 lines
356 B
PHP

--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===