PHPackages                             ohseesoftware/laravel-queue-fake - 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. ohseesoftware/laravel-queue-fake

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

ohseesoftware/laravel-queue-fake
================================

Describe your package here.

v1.1.0(5y ago)9180MITPHPPHP ^7.3 | ^8.0CI failing

Since May 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ohseesoftware/laravel-queue-fake)[ Packagist](https://packagist.org/packages/ohseesoftware/laravel-queue-fake)[ Docs](https://github.com/ohseesoftware/laravel-queue-fake)[ RSS](/packages/ohseesoftware-laravel-queue-fake/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Laravel Queue Fake
==================

[](#laravel-queue-fake)

[![Current Release](https://camo.githubusercontent.com/1e4d84e24639ce68479c5820fdfbc816500f6deb5fa6f95efabcb574cab20319/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f68736565736f6674776172652f6c61726176656c2d71756575652d66616b652e7376673f7374796c653d666c61742d737175617265)](https://github.com/ohseesoftware/laravel-queue-fake/releases)[![Build Status Badge](https://github.com/ohseesoftware/laravel-queue-fake/workflows/Build/badge.svg)](https://github.com/ohseesoftware/laravel-queue-fake/workflows/Build/badge.svg)[![Coverage Status](https://camo.githubusercontent.com/e1f49f7c672950f47b93bcd5f7c85f2fc2e80e261ddb9a93947c0a87a68690b1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f68736565736f6674776172652f6c61726176656c2d71756575652d66616b652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ohseesoftware/laravel-queue-fake?branch=master)[![Maintainability Score](https://camo.githubusercontent.com/782030e60f26cc809f7a5aaf3069864e8831eb1d2240488cc97f4866a8b5aa56/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6f68736565736f6674776172652f6c61726176656c2d71756575652d66616b652e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/ohseesoftware/laravel-queue-fake)[![Downloads](https://camo.githubusercontent.com/b15819f7131cd416cfffada18ad88b4fd9924c8fad2cde7d6b7300fa45d4c5bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f68736565736f6674776172652f6c61726176656c2d71756575652d66616b652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ohseesoftware/laravel-queue-fake)[![MIT License](https://camo.githubusercontent.com/15a1879582e6af2ae497c03fb62a2e84241bbd57e6976a361f07b535b7b5ba10/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f68736565736f6674776172652f6c61726176656c2d71756575652d66616b652e7376673f7374796c653d666c61742d737175617265)](https://github.com/ohseesoftware/laravel-queue-fake/blob/master/LICENSE)

Overview
========

[](#overview)

There may be times in your Laravel tests where you want to fake the Queue just for a couple lines, and then revert to the real queue after. This package makes that super simple to do:

```
// Given

// Queue is real there

// When
QueueFake::wrap(function () use (&$value) {
    // Queue is faked inside this function
});

// Queue is back to normal here
```

Installation
============

[](#installation)

`composer require ohseesoftware/laravel-queue-fake`

Usage
=====

[](#usage)

Imagine you need to fake the queue to call your factories to setup your models, but also want to test a job:

```
// Given
$user = null;
QueueFake::wrap(function () use (&$user) {
    // Queue is faked inside this function
    $user = factory(User::class)->create();
});

// When
// Queue is back to normal so we can dispatch, etc
SomeJob::dispatch($user);

// Then
$this->assertDatabaseHas('some-table', [
    'id' => 1
]);
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Owen Conti](https://github.com/ohseesoftware)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~149 days

Total

3

Last Release

1885d ago

PHP version history (2 changes)v1.0.0PHP ^7.3

v1.1.0PHP ^7.3 | ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0dafcec0352ac1a4de72f679bf2c72752d967bd388ec4e9c186142738993b945?d=identicon)[owenconti](/maintainers/owenconti)

---

Top Contributors

[![owenconti](https://avatars.githubusercontent.com/u/791222?v=4)](https://github.com/owenconti "owenconti (9 commits)")

---

Tags

facadelaravelphpqueuetestinglaravelohseesoftware

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ohseesoftware-laravel-queue-fake/health.svg)

```
[![Health](https://phpackages.com/badges/ohseesoftware-laravel-queue-fake/health.svg)](https://phpackages.com/packages/ohseesoftware-laravel-queue-fake)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M54](/packages/timacdonald-log-fake)[mpociot/laravel-test-factory-helper

Generate Laravel test factories from your existing models

933635.2k1](/packages/mpociot-laravel-test-factory-helper)[christophrumpel/missing-livewire-assertions

This package adds missing livewire test assertions.

149336.0k9](/packages/christophrumpel-missing-livewire-assertions)[davestewart/sketchpad

An innovative front-end environment for interactive Laravel development

29512.9k1](/packages/davestewart-sketchpad)[encodia/laravel-health-env-vars

Custom check for Spatie's Laravel Health - Ensure every .env variable you need has been set

20143.5k](/packages/encodia-laravel-health-env-vars)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
