imanghafoori/laravel-makesure
最新稳定版本:v1.1.2
Composer 安装命令:
composer require imanghafoori/laravel-makesure
包简介
A Laravel package to help you write expressive tests
README 文档
README
Easier tests for laravel
This package tries to give you a more readable syntax to write
Installation
composer require imanghafoori/laravel-makesure --dev
Usage
You can use it like this :
MakeSure::about($this)-> ->sendingGetRequest('some-url') ->isRespondedWith() ->statusCode(402); // Instead of writing this : $this ->get('some-url') ->assertStatus(402);
You should start of with the MakeSure alias or the Imanghafoori\MakeSure\Facades\MakeSure Facade class like this:
MakeSure::about($this)->...
Note that for technical reasons you should always pass $this into the about method.
then you have access to all of these methods:
sendingPostRequest
sendingJsonPostRequest
sendingDeleteRequest
sendingJsonDeleteRequest
sendingPutRequest
sendingJsonPutRequest
sendingPatchRequest
sendingJsonPatchRequest
sendingGetRequest
sendingJsonGetRequest
统计信息
- 总下载量: 2.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-22