2017 © Pedro Peláez
 

library pprocess

Testing of async processes

image

mnvx/pprocess

Testing of async processes

  • Tuesday, April 25, 2017
  • by mnvx
  • Repository
  • 2 Watchers
  • 2 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

PProcess

Build Status Latest Stable Version Minimum PHP Version MIT Licence, (*1)

Execution of processes in async mode for tests., (*2)

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., (*3)

Usage

<?php

use PHPUnit\Framework\TestCase;
use Mnvx\PProcess\Command\Command;
use Mnvx\PProcess\AsyncTrait;

/**
 * Class AsyncTest
 *
 * @use ./vendor/bin/phpunit tests/AsyncTest.php
 */
class AsyncTest extends TestCase
{
    use AsyncTrait;

    public function testCommandMustBeExecutedInAsyncMode()
    {
        // For Laravel
        $testCommand = "php artisan my-command-one --env=testing";
        $this->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:, (*4)

composer require mnvx/pprocess --dev

License

Released under the MIT license, (*5)

The Versions

25/04 2017

0.0.x-dev

0.0.9999999.9999999-dev

Testing of async processes

  Sources   Download

MIT

The Development Requires

by mnv

25/04 2017

0.0.2

0.0.2.0

Testing of async processes

  Sources   Download

MIT

The Development Requires

by mnv

25/04 2017

0.5.x-dev

0.5.9999999.9999999-dev

Testing of async processes

  Sources   Download

MIT

The Development Requires

by mnv

25/04 2017

0.5.1

0.5.1.0

Testing of async processes

  Sources   Download

MIT

The Development Requires

by mnv

24/04 2017

dev-master

9999999-dev

Testing of async processes

  Sources   Download

MIT

The Requires

 

by mnv

24/04 2017

1.0.3

1.0.3.0

Testing of async processes

  Sources   Download

MIT

The Requires

 

by mnv

23/04 2017

1.0.2

1.0.2.0

Testing of async processes

  Sources   Download

MIT

The Requires

 

by mnv

21/04 2017

0.5.0

0.5.0.0

Testing of async processes

  Sources   Download

MIT

The Development Requires

by mnv

21/04 2017

0.0.1

0.0.1.0

Testing of async processes

  Sources   Download

MIT

The Development Requires

by mnv

21/04 2017

1.0.1

1.0.1.0

Testing of async processes

  Sources   Download

MIT

The Development Requires

by mnv

21/04 2017

1.0.0

1.0.0.0

Testing of async processes

  Sources   Download

MIT

The Development Requires

by mnv