PHPackages                             wyrihaximus/async-test-utilities - 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. wyrihaximus/async-test-utilities

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

wyrihaximus/async-test-utilities
================================

Test utilities for api-clients packages

12.0.0(3mo ago)4768.6k↑4670%[1 PRs](https://github.com/WyriHaximus/php-async-test-utilities/pulls)20MITMakefilePHP ^8.4CI passing

Since Jan 13Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/php-async-test-utilities)[ Packagist](https://packagist.org/packages/wyrihaximus/async-test-utilities)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-async-test-utilities/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (122)Used By (20)

Test utilities
==============

[](#test-utilities)

[![Continuous Integration](https://github.com/wyrihaximus/php-async-test-utilities/workflows/Continuous%20Integration/badge.svg)](https://github.com/wyrihaximus/php-async-test-utilities/workflows/Continuous%20Integration/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/b7d67ef455b63eacb4ad3017aea8a66ba5373a2732993dbb9bc22eb5b542d908/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f746573742d7574696c69746965732f762f737461626c652e706e67)](https://packagist.org/packages/wyrihaximus/test-utilities)[![Total Downloads](https://camo.githubusercontent.com/e341216fba576373a87f15756c894a2260b0d5dac894856fa0340336cedb92f0/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f746573742d7574696c69746965732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/wyrihaximus/test-utilities/stats)[![Code Coverage](https://camo.githubusercontent.com/d94087906202dbef0acce7c9361a3962cf891130da5e80a6c27fa106d56ebc11/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f7068702d6173796e632d746573742d7574696c69746965732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/php-async-test-utilities/?branch=master)[![Type Coverage](https://camo.githubusercontent.com/c682c0e623111a0fb7877cab8129fd953e687562aeccb1d8b992814c077d8346/68747470733a2f2f73686570686572642e6465762f6769746875622f57797269486178696d75732f7068702d6173796e632d746573742d7574696c69746965732f636f7665726167652e737667)](https://shepherd.dev/github/WyriHaximus/php-async-test-utilities)[![License](https://camo.githubusercontent.com/4fdb0d7e8ddf25f3b1d3f30741004c550f59c507b084bb69ec6162548e7ad14a/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f746573742d7574696c69746965732f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/test-utilities)

Installation
============

[](#installation)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require wyrihaximus/async-test-utilities

```

Usage
=====

[](#usage)

Any test file can extend `WyriHaximus\AsyncTestUtilities\TestCase` and it comes with some goodies such as random namespaces and random directories to use for file storage related tests.

Since all tests are executed inside a fiber, there is a default timeout of `30` seconds. To lower or raise that timeout this package comes with a `TimeOut` attribute. It can be set on the class and method level. When set on both the method level it takes priority over the class level.

```
