/**
  * @throws \React\PublisherPulsar\Inventory\Exceptions\PublisherPulsarException
  */
 public function testPulsarLaunching()
 {
     $pulsar = new \React\PublisherPulsar\Pulsar();
     $publisherPulsarDto = new \React\PublisherPulsar\Inventory\PublisherPulsarDto();
     $publisherPulsarDto->setTimerIterationsLimit(20);
     $publisherPulsarDto->setModuleName('react:pulsar');
     $dir = __DIR__;
     $publisherPulsarDto->setReplyStackCommandName("php {$dir}/Inventory/ReplyStackCommand.php");
     $publisherPulsarDto->initDefaultPulsarSocketsParams();
     $pulsar->setPublisherPulsarDto($publisherPulsarDto);
     try {
         $pulsar->manage();
     } catch (\Exception $e) {
     }
     $this->assertEquals(true, $pulsar->isTimerIterationsLimitExceeded());
 }
<?php

/**
 * Created by PhpStorm.
 * User: nms
 * Date: 28.06.16
 * Time: 18:32
 */
require_once "autoloader.php";
$pulsar = new \React\PublisherPulsar\Pulsar();
$publisherPulsarDto = new \React\PublisherPulsar\Inventory\PublisherPulsarDto();
$publisherPulsarDto->setModuleName('react:pulsar');
$cliParams = [];
parse_str(implode('&', array_slice($argv, 1)), $cliParams);
if (isset($cliParams['iterationsLimit'])) {
    $publisherPulsarDto->setTimerIterationsLimit($cliParams['iterationsLimit']);
} else {
    $publisherPulsarDto->setTimerIterationsLimit(100);
}
$dir = __DIR__;
$publisherPulsarDto->setReplyStackCommandName("php {$dir}/ReplyStackCommand.php");
$publisherPulsarDto->initDefaultPulsarSocketsParams();
$pulsar->setPublisherPulsarDto($publisherPulsarDto);
$pulsar->manage();