Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 days ago
JSON representation
Helper package to ease testing with PHPUnit.
- Host: GitHub
- URL: https://github.com/amphp/phpunit-util
- Owner: amphp
- License: mit
- Created: 2017-03-11T13:35:20.000Z (almost 8 years ago)
- Default Branch: 3.x
- Last Pushed: 2024-09-19T05:54:22.000Z (4 months ago)
- Last Synced: 2024-12-23T09:25:09.143Z (11 days ago)
- Topics: amphp, async, php, phpunit, phpunit-util, revolt, testing
- Language: PHP
- Homepage:
- Size: 136 KB
- Stars: 21
- Watchers: 8
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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));
}
}
```