Download the PHP package imanghafoori/eloquent-mockery without Composer
On this page you can find all versions of the php package imanghafoori/eloquent-mockery. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package eloquent-mockery
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
tests
directory.
License
The MIT License (MIT). Please see License File for more information.
:raising_hand: Contributing
If you find an issue or have a better way to do something, feel free to open an issue, or a pull request.
:exclamation: Security
If you discover any security-related issues, please email [email protected]
instead of using the issue tracker.
All versions of eloquent-mockery with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2|^8.0
illuminate/database Version 5.*|6.*|7.*|8.*|9.*|10.*|11.*
illuminate/events Version 5.*|6.*|7.*|8.*|9.*|10.*|11.*
illuminate/database Version 5.*|6.*|7.*|8.*|9.*|10.*|11.*
illuminate/events Version 5.*|6.*|7.*|8.*|9.*|10.*|11.*
The package imanghafoori/eloquent-mockery contains the following files
Loading the files please wait ....