PHPackages                             zoomyboy/tests - 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. zoomyboy/tests

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

zoomyboy/tests
==============

0.1.0(7y ago)071PHP

Since Nov 23Pushed 4y agoCompare

[ Source](https://github.com/zoomyboy/tests)[ Packagist](https://packagist.org/packages/zoomyboy/tests)[ RSS](/packages/zoomyboy-tests/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (11)Used By (0)

Laravel test helpers
====================

[](#laravel-test-helpers)

Checking Authorization
----------------------

[](#checking-authorization)

You can check authorization with the ChecksAuthorization Trait

```
    use ChecksAuthorization;

    ...

    $this->assertRequestDenies(new Request($get, $post));
    $this->assertRequestGrants(new Request($get, $post));

```

User mocking
------------

[](#user-mocking)

You can fake a currently authenticated usser and set its Rights:

```
public $fakeUserModel = \App\User::class;

...

$this->mockUser(array $rights);

```

$rights is an array with all the right keys of this user. You should set the fakeUserModel on the test class to resolve the user (which is \\App\\User by default)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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 ~55 days

Recently: every ~105 days

Total

10

Last Release

2598d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/51877391ce0d185caee343c177e5186bf05efb7d29c4ff411309be119dcb616c?d=identicon)[zoomyboy](/maintainers/zoomyboy)

### Embed Badge

![Health badge](/badges/zoomyboy-tests/health.svg)

```
[![Health](https://phpackages.com/badges/zoomyboy-tests/health.svg)](https://phpackages.com/packages/zoomyboy-tests)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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