https://github.com/mnvx/pprocess
Execution of processes in async mode for tests
https://github.com/mnvx/pprocess
assertions async phpunit testing
Last synced: 27 days 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T22:38:05.000Z (about 8 years ago)
- Last Synced: 2025-02-10T22:52:15.570Z (3 months 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
========
[](https://travis-ci.org/mnvx/pprocess)
[](https://packagist.org/packages/mnvx/pprocess)
[](https://php.net/)
[](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