PHPackages                             geckoboom/whirlwind-application-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. [Testing &amp; Quality](/categories/testing)
4. /
5. geckoboom/whirlwind-application-testing

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

geckoboom/whirlwind-application-testing
=======================================

Functional testing for whirlwind micro framework

1.1.1(2y ago)26692MITPHPPHP ^8.0.0

Since Dec 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/geckoboom/whirlwind-application-testing)[ Packagist](https://packagist.org/packages/geckoboom/whirlwind-application-testing)[ RSS](/packages/geckoboom-whirlwind-application-testing/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (8)Versions (9)Used By (0)

Whirlwind Application Tests
===========================

[](#whirlwind-application-tests)

Application tests check the integration of all layers of the application (from routing to the responses). They are based on PHPUnit framework and have a special workflow:

1. Make a request
2. Test the response

Requirements
------------

[](#requirements)

- `PHP 7.4` or higher.

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

[](#installation)

The preferred way to install this extension is through composer.

Either run

```
composer require "geckoboom/whirlwind-application-testing" --dev

```

or add

```
 "geckoboom/whirlwind-application-testing": "*"

```

to the require-dev section of your composer.json file.

Defining a TestCase
-------------------

[](#defining-a-testcase)

To define your REST tests infrastructure you have to create a TestCase class that extends [RestTestCase](https://github.com/geckoboom/whirlwind-application-testing/blob/master/src/RestTestCase.php)and implement realization for `createApplication()` method.

The following code defines a whirlwind application TestCase

```
