Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 810 Bytes

rehearsal.md

File metadata and controls

35 lines (25 loc) · 810 Bytes

Rehearsal

Introduction

An orchestra extension to simplify testing packages in a litstack application environment.

Installation

Install the package via composer:

composer require --dev litstack/rehearsal

Usage

To run tests in a litstack environment, your test class only needs to extend Litstack\Rehearsal\TestCase.

use Litstack\Rehearsal\TestCase as LitstackTestCase;

class TestCase extends LitstackTestCase
{
    public function test_litstack_is_installed()
    {
        $this->assertTrue(lit()->installed());
    }
}

This testcase is an extension of Orchestra\Testbench\TestCase. All its functions can be used. Read more on how to test your packages in the orchestra docs