【文件属性】:
文件名称:phisby:受frisby-js启发的phpunit API测试工具
文件大小:27KB
文件格式:ZIP
更新时间:2021-05-05 15:45:41
PHP
菲斯比
受frisby-js启发的REST API测试框架,用PHP编写
文献资料
该库的文档可在上
安装
运行以下composer命令:
$ composer require " phisby/phisby "
基本用法。
use Phisby \ Phisby
$ phisby = new Phisby ();
$ phisby
-> get ( 'http://localhost/api/1.0/users/3.json' )
-> expectStatus ( 200 )
-> expectJSONTypes ( '.' , [
'id' => 'integer' ,
'username' => 'string' ,
'is_admin' => 'boolean'
])
【文件预览】:
phisby-master
----composer.json(1KB)
----.travis.yml(373B)
----docs()
--------requirements.txt(18B)
--------Makefile(7KB)
--------source()
----tests()
--------bootstrap.php(271B)
--------PhisbyTest()
----LICENSE(1022B)
----src()
--------Phisby()
----.coveralls.yml(96B)
----.gitignore(545B)
----phpunit.xml.dist(760B)
----README.md(2KB)
----ruleset.xml(450B)