[PhpUnit] Fix usleep mock return value
This commit is contained in:
parent
35b670112c
commit
8198d93c5b
@ -52,12 +52,10 @@ class ClockMock
|
||||
public static function usleep($us)
|
||||
{
|
||||
if (null === self::$now) {
|
||||
return \usleep($us);
|
||||
\usleep($us);
|
||||
} else {
|
||||
self::$now += $us / 1000000;
|
||||
}
|
||||
|
||||
self::$now += $us / 1000000;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static function microtime($asFloat = false)
|
||||
@ -108,7 +106,7 @@ function sleep(\$s)
|
||||
|
||||
function usleep(\$us)
|
||||
{
|
||||
return \\$self::usleep(\$us);
|
||||
\\$self::usleep(\$us);
|
||||
}
|
||||
|
||||
EOPHP
|
||||
|
Reference in New Issue
Block a user