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.
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.
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');
});
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.