PHPackages                             package-for-laravel/testing-framework - 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. package-for-laravel/testing-framework

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

package-for-laravel/testing-framework
=====================================

Useful library functionality for testing Laravel Apps

1.2.0(5y ago)086321MITPHPPHP ^7.3

Since Aug 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/package-for-laravel/testing-framework)[ Packagist](https://packagist.org/packages/package-for-laravel/testing-framework)[ RSS](/packages/package-for-laravel-testing-framework/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (8)Used By (1)

Laravel Test Framework
======================

[](#laravel-test-framework)

```
ARCHIVED: This project is archived and no longer maintained.

```

This library adds in test utilities and a useful framework for Laravel projects.

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

[](#installation)

### Requirements

[](#requirements)

- Laravel 7.8+
- PHPUnit 8+
- PHP 7.3+

Install using composer:

`composer require --dev package-for-laravel/testing-framework`

Features
--------

[](#features)

### Unit Test Cases

[](#unit-test-cases)

This project sets up a three-stage or level testing framework:

- **Unit** Smallest test cases that interact with only themselves. Think string filtering class.
- **Integration** Tests that are similar to unit tests but interact with something else, like a database. Think testing Model query scopes.
- **Feature** Feature tests test from http request to response. Think API testing or validating a form submits successfully.

When you set up your `tests` directory, you may make three folders named after those types. Then, you can extend a Test Case named after each.

For example, you may have the file `tests/Unit/Models/User.php` that looks like this:

```
