Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amphp/phpunit-util

Helper package to ease testing with PHPUnit.
https://github.com/amphp/phpunit-util

amphp async php phpunit phpunit-util revolt testing

Last synced: 1 day ago
JSON representation

Helper package to ease testing with PHPUnit.

Awesome Lists containing this project

README

        

# amphp/phpunit-util

AMPHP is a collection of event-driven libraries for PHP designed with fibers and concurrency in mind.
`amphp/phpunit-util` is a small helper package to ease testing with PHPUnit.

![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)

## Installation

This package can be installed as a [Composer](https://getcomposer.org/) dependency.

```bash
composer require --dev amphp/phpunit-util
```

The package requires PHP 8.1 or later.

## Usage

```php
write('foobar');

$this->assertSame('foobar', ByteStream\buffer($socket));
}
}
```