测试时间:控制时间流逝的助手

时间:2021-02-06 11:10:14
【文件属性】:
文件名称:测试时间:控制时间流逝的助手
文件大小:8KB
文件格式:ZIP
更新时间:2021-02-06 11:10:14
testing php time tests carbon 一个帮助控制时间流逝的助手 是一个出色的库,可以在PHP项目中使用时间。 Spatie\TestTime\TestTime类包含一些函数,这些函数在Spatie\TestTime\TestTime操作被Carbon视为当前时间的时间。 // the flow of time is frozen TestTime :: freeze (); // we're now one year in the future TestTime :: addYear (); // will report the real current year + 1 $ year = ( new Carbon ())-
【文件预览】:
test-time-master
----README.md(3KB)
----CHANGELOG.md(501B)
----.github()
--------workflows()
--------FUNDING.yml(31B)
----.styleci.yml(66B)
----composer.json(1KB)
----CONTRIBUTING.md(3KB)
----src()
--------TestTime.php(10KB)
----LICENSE.md(1KB)

网友评论