PHPackages                             assertwell/phpunit-global-state - 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. assertwell/phpunit-global-state

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

assertwell/phpunit-global-state
===============================

Tools for testing applications that depend on global state with PHPUnit

v0.2.2(3y ago)41.2M↑21.7%3[2 PRs](https://github.com/assertwell/phpunit-global-state/pulls)2MITPHPPHP &gt;=5.6

Since Sep 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/assertwell/phpunit-global-state)[ Packagist](https://packagist.org/packages/assertwell/phpunit-global-state)[ Fund](https://www.paypal.me/stevegrunwell)[ GitHub Sponsors](https://github.com/stevegrunwell)[ RSS](/packages/assertwell-phpunit-global-state/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (7)Used By (2)

PHPUnit Global State
====================

[](#phpunit-global-state)

This library provides a number of traits meant to help test applications that depend on global state.

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

[](#installation)

You may install the package [via Composer](https://getcomposer.org):

```
$ composer require --dev assertwell/phpunit-global-state
```

Once installed, add the desired traits into your PHPUnit test classes:

```
