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: 8 months 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 (over 8 years ago)
 - Default Branch: 3.x
 - Last Pushed: 2024-09-19T05:54:22.000Z (about 1 year ago)
 - Last Synced: 2025-03-15T03:06:02.757Z (8 months ago)
 - Topics: amphp, async, php, phpunit, phpunit-util, revolt, testing
 - Language: PHP
 - Homepage:
 - Size: 136 KB
 - Stars: 22
 - Watchers: 7
 - 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.

## 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));
    }
}
```