/** * Initialize Pulsar (ReplyStack) and Performer for connection */ public static function setUpBeforeClass() { self::$performer = new \React\PublisherPulsar\Performer(); $performerDto = new \React\PublisherPulsar\Inventory\PerformerDto(); $performerDto->setModuleName("PerformerTest"); self::$performer->setPerformerDto($performerDto); self::$performer->initDefaultPerformerSocketsParams(); $dir = __DIR__; $cmd = "php {$dir}/Inventory/PulsarCommand.php iterationsLimit=10"; $fdSpec = [['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']]; self::$pulsarProcess = proc_open($cmd, $fdSpec, self::$pipes); }