在PHP单元测试中在服务器端模拟HTTP请求-PHP开发

时间:2021-05-27 08:06:54
【文件属性】:
文件名称:在PHP单元测试中在服务器端模拟HTTP请求-PHP开发
文件大小:38KB
文件格式:ZIP
更新时间:2021-05-27 08:06:54
PHP Testing 用于PHP的HTTP Mock在PHP单元测试中,模拟服务器端的HTTP请求。 PHP的HTTP Mock模拟HTTP请求的服务器端,以允许与HTTP端进行集成测试。 它使用PHP的内置Web服务器t HTTP Mock进行PHP模拟,在PHP单元测试中,服务器端的HTTP请求。 PHP的HTTP Mock模拟HTTP请求的服务器端,以允许与HTTP端进行集成测试。 它使用PHP的内置Web服务器来启动处理模拟的第二个过程。 服务器允许从客户端注册请求匹配器和响应。 大脂肪警告:此类软件本质上是不安全的。 仅在受信任的受控环境中使用。 用法阅读文档
【文件预览】:
http-mock-main
----.gitignore(59B)
----src()
--------PHPUnit()
--------Server.php(4KB)
--------Response()
--------Util.php(543B)
--------Request()
--------app.php(7KB)
--------Expectation.php(4KB)
--------RequestStorage.php(1KB)
--------Matcher()
--------MockBuilder.php(3KB)
--------RequestCollectionFacade.php(4KB)
--------ResponseBuilder.php(1KB)
----build()
--------.gitkeep(0B)
----LICENSE(1KB)
----public()
--------index.php(224B)
----doc()
--------start.md(2KB)
--------index.md(269B)
--------server.md(1KB)
--------recording.md(1KB)
--------stubbing.md(4KB)
----composer.json(1KB)
----.github()
--------workflows()
----README.md(674B)
----tests()
--------PHPUnit()
--------Fixtures()
--------MockBuilderIntegrationTest.php(8KB)
--------Request()
--------Matcher()
--------AppIntegrationTest.php(9KB)
--------RequestCollectionFacadeTest.php(7KB)
----state()
--------.gitkeep(0B)
----phpunit.xml.dist(1KB)

网友评论