nekofar / pest-plugin-slim
The Pest Slim Plugin
Fund package maintenance!
nekofar
unstoppabledomains.com/d/nekofar.crypto
Installs: 3 669
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- nekofar/slim-test: ^2.0
- pestphp/pest: ^1.0
- pestphp/pest-plugin: ^1.0
Requires (Dev)
- nekofar/dev-tools: ^2.0
- pestphp/pest-dev-tools: dev-master
- php-di/slim-bridge: ^3.0
- roave/security-advisories: dev-latest
- v2.0.0
- dev-master / 1.x-dev
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.1.0-beta.0
- v1.1.0-alpha.1
- v1.1.0-alpha.0
- v1.0.0
- v1.0.0-beta.0
- v1.0.0-alpha.6
- v1.0.0-alpha.5
- v1.0.0-alpha.4
- v1.0.0-alpha.3
- v1.0.0-alpha.2
- v1.0.0-alpha.1
- v1.0.0-alpha.0
- dev-develop
- dev-dependabot/github_actions/develop/orhun/git-cliff-action-1.1.7
This package is auto-updated.
Last update: 2022-05-03 07:14:18 UTC
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 7.3 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.