totalcms/pest-plugin-slim

The Pest Slim Plugin (maintained fork of nekofar/pest-plugin-slim)

Maintainers

Package info

github.com/totalcms/pest-plugin-slim

pkg:composer/totalcms/pest-plugin-slim

Transparency log

Statistics

Installs: 9

Dependents: 1

Suggesters: 0

Stars: 0

v4.0.0 2026-07-21 19:35 UTC

README

Packagist Version PHP from Packagist Packagist Downloads Tests Status Coverage Status License

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.

Note

This is a maintained fork of nekofar/pest-plugin-slim paired with totalcms/slim-test, published as totalcms/pest-plugin-slim.

Installation

To get started, install the plugin using composer:

composer require totalcms/pest-plugin-slim --dev

Requires Slim Framework 4 and PHP 8.1 or newer.

Usage

use function TotalCMS\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.