Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mnvx/pprocess
Execution of processes in async mode for tests
https://github.com/mnvx/pprocess
assertions async phpunit testing
Last synced: about 1 month ago
JSON representation
Execution of processes in async mode for tests
- Host: GitHub
- URL: https://github.com/mnvx/pprocess
- Owner: mnvx
- Created: 2017-04-20T22:13:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T22:38:05.000Z (over 7 years ago)
- Last Synced: 2024-12-17T10:05:20.935Z (about 1 month ago)
- Topics: assertions, async, phpunit, testing
- Language: PHP
- Size: 51.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PProcess
========
[![Build Status](https://travis-ci.org/mnvx/pprocess.png?branch=master)](https://travis-ci.org/mnvx/pprocess)
[![Latest Stable Version](https://img.shields.io/packagist/v/mnvx/pprocess.svg?style=flat-square)](https://packagist.org/packages/mnvx/pprocess)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%205.5-8892BF.svg?style=flat-square)](https://php.net/)
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)Execution of processes in async mode for tests.
This extension for PhpUnit will help you to test bugs in processes
which are executing in async mode. PProcess will help you to test
deadlocks, conflicts with duplicate keys
and other bugs in async processes.Usage
-----```php
assertAsyncCommand(new Command($testCommand, dirname(dirname(__FILE__)), 5));
}public function testCommandMustNotBeExecutedInAsyncMode()
{
// For Symfony
$testCommand = "bin/console my-command-two --env=testing";
$this->assertNotAsyncCommand(new Command($testCommand, dirname(dirname(__FILE__)), 5));
}}
```Requirements
------------* Linux or MacOS. Windows is not supported.
* PHP 5.5+Installation
------------Using composer:
```bash
composer require mnvx/pprocess --dev
```License
-------Released under the MIT license