nekofar/pest-plugin-slim

The Pest Slim Plugin

Maintainers

👁 nekofar

Package info

github.com/nekofar/pest-plugin-slim

pkg:composer/nekofar/pest-plugin-slim

Fund package maintenance!

ud.me/nekofar.crypto

Statistics

Installs: 14 563

Dependents: 1

Suggesters: 0

Stars: 5

Open Issues: 8

v3.1.6 2023-07-23 16:28 UTC

Requires

Suggests

None

Provides

None

Conflicts

Replaces

None

MIT e75efba770bf1d0ebbe23dd237e34aa93768af96

frameworkphptestingplugintestunitslimpest

This package is auto-updated.

Last update: 2026-06-14 01:42:24 UTC


README

👁 Packagist Version
👁 PHP from Packagist
👁 Packagist Downloads
👁 Tests Status
👁 Coverage Status
👁 License
👁 Twitter: nekofar
👁 Donate

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.