Add tests for schedule stuff

This commit is contained in:
Dane Everitt 2017-09-14 23:02:31 -05:00
parent a8c4d6afdb
commit 4e5398fb6b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 424 additions and 5 deletions

View file

@ -45,3 +45,17 @@ if (! function_exists('human_readable')) {
return app('file')->humanReadableSize($path, $precision);
}
}
if (! function_exists('is_digit')) {
/**
* Deal with normal (and irritating) PHP behavior to determine if
* a value is a non-float positive integer.
*
* @param mixed $value
* @return bool
*/
function is_digit($value)
{
return is_bool($value) ? false : ctype_digit(strval($value));
}
}