defstudio / pest-plugin-laravel-expectations
A plugin to add laravel tailored expectations to Pest
Fund package maintenance!
fabio-ivona
defstudio
Installs: 187 024
Dependents: 6
Suggesters: 0
Security: 0
Stars: 95
Watchers: 2
Forks: 15
Open Issues: 5
Requires
- php: ^8.1.0
- illuminate/contracts: ^10.0|^11.0.3
- illuminate/database: ^10.0|^11.0.3
- illuminate/http: ^10.0|^11.0.3
- illuminate/support: ^10.0|^11.0.3
- illuminate/testing: ^10.0|^11.0.3
- pestphp/pest: ^2.0|^3.0
- pestphp/pest-plugin: ^2.0|^3.0
- pestphp/pest-plugin-laravel: ^2.0|^3.0
Requires (Dev)
- ergebnis/phpstan-rules: ^2.1.0
- laravel/pint: ^1.11.0
- nesbot/carbon: ^2.62.1
- orchestra/testbench: ^8.0|^9.0
- phpstan/phpstan: ^1.10.29
- phpstan/phpstan-strict-rules: ^1.5.1
- rector/rector: ^1.0.3
- symfony/var-dumper: ^6.3.3|^v7.0.4
- symplify/phpstan-rules: ^12.1.4.72
- thecodingmachine/phpstan-strict-rules: ^1.0.0
- dev-main
- v2.3.0
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.0
- v1.12.2
- v1.12.1
- v1.12.0
- v1.11.0
- v1.10.5
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.1
- v1.9.0
- v1.8.1
- v1.8.0
- v1.7.0
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.6
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-dependabot/composer/nesbot/carbon-tw-3.8.2
- dev-dependabot/composer/nesbot/carbon-tw-3.8.1
- dev-dependabot/composer/symplify/phpstan-rules-tw-13.0.1
This package is auto-updated.
Last update: 2024-11-08 09:06:33 UTC
README
This Pest plugin adds Laravel specific expectations to the testing ecosystem
it('can check model exists', function(){ $user = User::factory()->create(); expect($user)->toExist(); });
Installation
You can install the package via composer:
composer require --dev defstudio/pest-plugin-laravel-11.expectations
The expectations added by this plugin are automatically loaded into Pest's expectation system. They can be used along other expectations.
Documentation
A full documentation with a detailed list of available expectations can be found at:
https://docs.defstudio.it/pest-plugin-laravel-expectations
Autocompletion
For PhpStorm users, a nice Plugin has been developed by Oliver Nybroe. It adds full autocompletion to ours Laravel Expectations, it is worth to take a look: https://github.com/pestphp/pest-intellij
Changelog
All notable changes to this project in our changelog. For a full understanding of what changed and the PR that where merged, see also the releases page
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Credits
Please see the contributing guide for details on how to contribute to this plugin.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.