关于php:php常用类库开发调试

mikey179/vfsstream

composer 

http://packagist.p2hp.com/packages/mikey179/vfsstream
github

https://github.com/bovigo/vfsStream
phpunit 文档阐明 - 测试对文件系统进行模仿

https://phpunit.readthedocs.io/zh_CN/latest/test-doubles.html?highlight=vfsStream#test-doubles-mocking-the-filesystem

单元测试中常常应用,是虚构文件系统的流笼罩。用来在单测中mock file system,防止对文件系统的间接操作


评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理