Download the PHP package homedistil/eloquent-mockery without Composer
On this page you can find all versions of the php package homedistil/eloquent-mockery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download homedistil/eloquent-mockery
More information about homedistil/eloquent-mockery
Files in homedistil/eloquent-mockery
Download homedistil/eloquent-mockery
More information about homedistil/eloquent-mockery
Files in homedistil/eloquent-mockery
Vendor homedistil
Package eloquent-mockery
Short Description Allows you to design your tests in an independent manner.
License MIT
Homepage https://github.com/imanghafoori1/eloquent-mockery
Package eloquent-mockery
Short Description Allows you to design your tests in an independent manner.
License MIT
Homepage https://github.com/imanghafoori1/eloquent-mockery
Please rate this library. Is it a good library?
Informations about the package eloquent-mockery
This is a fork of the project:
https://github.com/imanghafoori1/eloquent-mockery
With unlocked Laravel version.
Eloquent Mockery
Mock your eloquent queries without the repository pattern.
Why this package was invented?
- It solves the problem of "slow tests" by removing the interactions with a real database.
- It simplifies the process of writing and running tests since your tests will be "DB Independent".
Installation
You can install the package via Composer:
Usage:
First, you have to define a new connection in your config/database.php and set the driver to 'arrayDB'.
Then you can:
Mocking a create query:
- For more examples take a look at the
testsdirectory.
License
The MIT License (MIT). Please see License File for more information.
All versions of eloquent-mockery with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2|^8.0
The package homedistil/eloquent-mockery contains the following files
Loading the files please wait ...