PHPackages                             henrotaym/laravel-test-suite - 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. henrotaym/laravel-test-suite

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

henrotaym/laravel-test-suite
============================

Adding recurrent functionalities to laravel test suite.

v3.0.2(2mo ago)07.7k↓43.8%7MITPHPCI passing

Since Oct 14Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/henrotaymcorp/laravel-test-suite)[ Packagist](https://packagist.org/packages/henrotaym/laravel-test-suite)[ RSS](/packages/henrotaym-laravel-test-suite/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (13)Used By (7)

Laravel test suite
==================

[](#laravel-test-suite)

Compatibility
-------------

[](#compatibility)

LaravelPackage8.x / 9.x2.x12.x3.xInstallation
------------

[](#installation)

```
composer require henrotaym/laravel-test-suite

```

Configuration
-------------

[](#configuration)

Your TestCase should use this trait :

```
Henrotaym\LaravelTestSuite\TestSuite

```

Functionalities
---------------

[](#functionalities)

### Mocking

[](#mocking)

```
/**
* Mocking given element.
*
* @param  string $element Element to mock
* @return  MockInterface
*/
protected  function  mockThis(string  $element,  bool  $is_partial  = false):  MockInterface

```

### Getting private property

[](#getting-private-property)

```
/**
 * Getting private property value from given instance.
 *
 * @param string $property Property we're trying to access to.
 * @param mixed $instance Instance where we access property.
 * @return mixed Property value.
 */
protected function getPrivateProperty(string $property, $instance);

```

### Setting private property

[](#setting-private-property)

```
/**
 * Setting private property value in given instance.
 *
 * @param string $property Property we're trying to access to.
 * @param mixed $value Value to set.
 * @param mixed $instance Instance where we set value.
 * @return mixed Instance in order to chain potential calls.
 */
protected function setPrivateProperty(string $property, $value, $instance);

```

### Calling private method

[](#calling-private-method)

```
/**
 * Calling private method from given instance.
 *
 * @param string $method Method we're trying to access to.
 * @param mixed $instance Instance where we access method.
 * @param mixed $parameters Arguments to give to method.
 * @return mixed Method return value.
 */
protected function callPrivateMethod(string $method, $instance, ...$parameters);

```

### Mocking Carbon now helper

[](#mocking-carbon-now-helper)

```
/**
 * Mocking Carbon now helper.
 *
 * @param Carbon $now Expected time returned when calling now().
 * @return static
 */
public function mockCarbonNow(Carbon $now)

```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance83

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Recently: every ~371 days

Total

12

Last Release

84d ago

Major Versions

v1.0.1 → v2.0.02021-10-14

v2.2.4 → v3.0.02026-02-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24230736?v=4)[Mathieu Henrotay](/maintainers/henrotaym)[@henrotaym](https://github.com/henrotaym)

---

Top Contributors

[![henrotaym](https://avatars.githubusercontent.com/u/24230736?v=4)](https://github.com/henrotaym "henrotaym (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/henrotaym-laravel-test-suite/health.svg)

```
[![Health](https://phpackages.com/badges/henrotaym-laravel-test-suite/health.svg)](https://phpackages.com/packages/henrotaym-laravel-test-suite)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[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)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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