imanghafoori/laravel-makesure

A Laravel package to help you write expressive tests

Maintainers

👁 imanghafoori1

Package info

github.com/imanghafoori1/laravel-makesure

pkg:composer/imanghafoori/laravel-makesure

Statistics

Installs: 2 871

Dependents: 3

Suggesters: 0

Stars: 21

Open Issues: 2

v1.1.2 2023-12-12 18:38 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT af230ab45a72b0acef72f9f4330fdcc616e12565

  • Iman Ghafoori <imanghafoori1.woop@gmail.com>

phplaravellaravel-packagelaravel-testing

This package is auto-updated.

Last update: 2026-06-13 00:37:12 UTC


README

Easier tests for laravel

👁 StyleCI
👁 Build Status
👁 Quality Score

This package tries to give you a more readable syntax to write

Installation


composer require imanghafoori/laravel-makesure --dev

Usage

You can use it like this :

 MakeSure::about($this)->
 ->sendingGetRequest('some-url')
 ->isRespondedWith()
 ->statusCode(402);

// Instead of writing this :

$this
 ->get('some-url')
 ->assertStatus(402);

You should start of with the MakeSure alias or the Imanghafoori\MakeSure\Facades\MakeSure Facade class like this:


MakeSure::about($this)->...

Note that for technical reasons you should always pass $this into the about method.

then you have access to all of these methods:


sendingPostRequest

sendingJsonPostRequest

sendingDeleteRequest

sendingJsonDeleteRequest

sendingPutRequest

sendingJsonPutRequest

sendingPatchRequest

sendingJsonPatchRequest

sendingGetRequest

sendingJsonGetRequest