PHPackages                             streams/testing - 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. streams/testing

ActiveStreams-addon

streams/testing
===============

Testing for Streams

1.0.x-dev(5mo ago)0211↑566.7%17MITPHP

Since Nov 12Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/laravel-streams/streams-testing)[ Packagist](https://packagist.org/packages/streams/testing)[ RSS](/packages/streams-testing/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelogDependencies (2)Versions (1)Used By (7)

Streams Testing
===============

[](#streams-testing)

A comprehensive testing package for the Streams platform that provides a pre-configured Laravel testing environment with sample data and utilities for testing Streams applications.

Features
--------

[](#features)

- **Pre-configured Test Environment**: Extends Orchestra Testbench for seamless Laravel/Streams integration
- **Sample Test Data**: Includes Star Wars-themed sample streams (films, people, planets, species, starships, vehicles, files)
- **Automatic Data Restoration**: Automatically restores test data after each test to ensure clean state
- **PHPUnit 10 Support**: Fully compatible with the latest PHPUnit version
- **Custom TestCase**: Base test case class with built-in utilities for Streams testing

Quick Start
-----------

[](#quick-start)

### Installation

[](#installation)

```
composer require streams/testing --dev
```

### Create phpunit.xml

[](#create-phpunitxml)

```

            ./tests

```

### Write Your First Test

[](#write-your-first-test)

```
