PHPackages                             rezak/pest-test-helpers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. rezak/pest-test-helpers

ActiveLibrary

rezak/pest-test-helpers
=======================

Custom Pest assertions for Laravel

023PHP

Since Jan 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rezak9876/pest-test-helpers)[ Packagist](https://packagist.org/packages/rezak/pest-test-helpers)[ RSS](/packages/rezak-pest-test-helpers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Pest Test Helper
================

[](#pest-test-helper)

A custom Laravel package that extends Pest with additional assertions to make testing routes and requests easier. This package includes assertions like `assertrouteCanSeeFormRequest` to simplify testing route accessibility in your Laravel application.

Installation
------------

[](#installation)

You can install this package via Composer.

### 1. Add Package to Your Laravel Project

[](#1-add-package-to-your-laravel-project)

Run the following command to add the package to your Laravel project:

```
composer require rezak/pest-test-helpers --dev
```

Usage
-----

[](#usage)

This package adds custom assertions for easier testing of routes and requests. Here's an example of how to use the `assertrouteCanSeeFormRequest` assertion in your tests:

```
it('can see the request for the test route', function () {
    class CustomRequest {}

    Route::get('/test-route', fn(CustomRequest $request) => []);

    // Assert that the route '/test-route' can see the request
    $this->assertrouteCanSeeFormRequest('test-route', CustomRequest::class);
});
```

In this example, the test checks if the custom request class (`CustomRequest`) is correctly injected when hitting the route `/test-route`. The assertion ensures that the request can be seen by the route.

### Available Assertions

[](#available-assertions)

- `assertrouteCanSeeFormRequest`: Verifies that a specific request class can be seen by a given route.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/756868a7289369c638fc953b5aaea56dbcb85f9b4eda5bc598050c0592246d66?d=identicon)[rezak](/maintainers/rezak)

---

Top Contributors

[![rezak9876](https://avatars.githubusercontent.com/u/121686688?v=4)](https://github.com/rezak9876 "rezak9876 (6 commits)")

### Embed Badge

![Health badge](/badges/rezak-pest-test-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/rezak-pest-test-helpers/health.svg)](https://phpackages.com/packages/rezak-pest-test-helpers)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
