nekofar/pest-plugin-slim
Composer 安装命令:
composer require --dev nekofar/pest-plugin-slim
包简介
The Pest Slim Plugin
README 文档
README
This package is a plugin for Pest PHP. The Slim Plugin for Pest gives your basic functionality for testing your API's built by Slim.
Installation
To get started, install the plugin using composer:
composer require nekofar/pest-plugin-slim --dev
Requires Slim Framework 4 and PHP 8.1 or newer.
Usage
use function Nekofar\Slim\Pest\get; beforeEach(function (): void { $app = require __DIR__ . '/../config/bootstrap.php'; $this->setUpApp($app); }) it('can see home page', function (): void { get('/') ->assertOk() ->assertSee('Welcome'); });
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 14.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-01