Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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