PHPackages                             unicorn/lumen-testbench - 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. unicorn/lumen-testbench

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

unicorn/lumen-testbench
=======================

Lumen fork of the orchestra/testbench Laravel Testing Helper for Packages Development

v4.3.0(6y ago)0801MITPHPPHP &gt;=7.2

Since Jun 19Pushed 6y agoCompare

[ Source](https://github.com/UnicornGlobal/lumen-testbench)[ Packagist](https://packagist.org/packages/unicorn/lumen-testbench)[ Docs](http://orchestraplatform.com/docs/latest/components/testbench/)[ RSS](/packages/unicorn-lumen-testbench/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (107)Used By (0)

Laravel Testing Helper for Packages Development
===============================================

[](#laravel-testing-helper-for-packages-development)

Testbench Component is a simple package that has been designed to help you write tests for your Laravel package, especially when there is routing involved.

[![Build Status](https://camo.githubusercontent.com/8981e794f17a09da610d438f827f3d00253b4aefbf648549f5bfeff4669f230e/68747470733a2f2f7472617669732d63692e6f72672f6f72636865737472616c2f7465737462656e63682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/orchestral/testbench)[![Latest Stable Version](https://camo.githubusercontent.com/286383490aafc68efa528047fb4f19abf4deee4b8822c625e4cf88900294c5a6/68747470733a2f2f706f7365722e707567782e6f72672f6f72636865737472612f7465737462656e63682f762f737461626c65)](https://packagist.org/packages/orchestra/testbench)[![Total Downloads](https://camo.githubusercontent.com/3cfbee29013a365951213991f66d3d8fae568cac19dd7b9be28b78a6fe803f88/68747470733a2f2f706f7365722e707567782e6f72672f6f72636865737472612f7465737462656e63682f646f776e6c6f616473)](https://packagist.org/packages/orchestra/testbench)[![License](https://camo.githubusercontent.com/e997c3982e6b2c315b9caefbe76364612c2b7631a8dc37c426a014a41ddd2fe5/68747470733a2f2f706f7365722e707567782e6f72672f6f72636865737472612f7465737462656e63682f6c6963656e7365)](https://packagist.org/packages/orchestra/testbench)

- [Version Compatibility](#version-compatibility)
- [Getting Started](#getting-started)
- [Installation](#installation)
- [Usage](#usage)
- [Example](#example)
- [Alternative Testing](#alternative-testing)
- [Troubleshoot](#troubleshoot)
- [Changelog](https://github.com/orchestral/testbench/releases)

Version Compatibility
---------------------

[](#version-compatibility)

LaravelTestbench5.0.x3.0.x5.1.x3.1.x5.2.x3.2.x5.3.x3.3.x5.4.x3.4.x5.5.x3.5.x5.6.x3.6.x5.7.x3.7.x5.8.x3.8.x6.x4.x7.x5.x8.x@dev6.x@devGetting Started
---------------

[](#getting-started)

Before going through the rest of this documentation, please take some time to read the [Package Development](https://laravel.com/docs/6.x/packages) section of Laravel's own documentation, if you haven't done so yet.

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

[](#installation)

To install through composer, run the following command from terminal:

```
composer require --dev "orchestra/testbench"

```

Usage
-----

[](#usage)

To use Testbench Component, all you need to do is extend `Orchestra\Testbench\TestCase` instead of `PHPUnit\Framework\TestCase`. The fixture `app` booted by `Orchestra\Testbench\TestCase` is predefined to follow the base application skeleton of Laravel 6.

```
