PHPackages                             homedistil/eloquent-mockery - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. homedistil/eloquent-mockery

ActiveLibrary[Testing &amp; Quality](/categories/testing)

homedistil/eloquent-mockery
===========================

Allows you to design your tests in an independent manner.

1.1.0(3mo ago)04MITPHPPHP ^7.2|^8.0

Since Apr 20Pushed 3mo agoCompare

[ Source](https://github.com/homedistil/eloquent-mockery)[ Packagist](https://packagist.org/packages/homedistil/eloquent-mockery)[ Docs](https://github.com/imanghafoori1/eloquent-mockery)[ RSS](/packages/homedistil-eloquent-mockery/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

This is a fork of the project:

**With unlocked Laravel version.**

Eloquent Mockery
================

[](#eloquent-mockery)

Mock your eloquent queries without the repository pattern.

### Why this package was invented?

[](#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
------------

[](#installation)

You can **install** the package via Composer:

```
composer require homedistil/eloquent-mockery --dev dev-main
```

Usage:
------

[](#usage)

First, you have to define a new connection in your `config/database.php` and set the driver to 'arrayDB'.

```
