PHPackages                             styde/laravel-test-helpers - 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. styde/laravel-test-helpers

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

styde/laravel-test-helpers
==========================

A collection of additional helpers to test your Laravel apps

59[1 issues](https://github.com/StydeNet/laravel-test-helpers/issues)[1 PRs](https://github.com/StydeNet/laravel-test-helpers/pulls)PHPCI failing

Since Oct 28Pushed 1y ago2 watchersCompare

[ Source](https://github.com/StydeNet/laravel-test-helpers)[ Packagist](https://packagist.org/packages/styde/laravel-test-helpers)[ RSS](/packages/styde-laravel-test-helpers/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Styde / Laravel Test Helpers
============================

[](#styde--laravel-test-helpers)

This package contains additional helpers to test your Laravel applications.

Installation
------------

[](#installation)

`composer require styde/laravel-test-helpers --dev`

Faster RefreshDatabase
----------------------

[](#faster-refreshdatabase)

We provide a custom implementation of the trait `Illuminate\Foundation\Testing\RefreshDatabase` included with Laravel.

Our trait caches the last time you modified a migration file and only reruns `migrate:fresh` if there are new files or changes in your migration paths.

In this way feature tests can run much faster, especially when running one or two tests instead of the whole test suite.

In order to use this trait just include it in your test class and call `$this->refreshDatabase();` in the `setUp`method like the example below:

```
