php - symfony write process output to file -
php - symfony write process output to file -
how write output of asynchronous process file. have next code in phpunit bootstrap file:
$command = 'exec php ' . $kernel->getrootdir() . '/console ' . 'xxx:servicebus:start-services --env=' . $kernel->getenvironment(); $servicebuscommand = new symfony\component\process\process($command); $servicebuscommand->start();
obviously code starts servicebus instance listens incoming requests server. 1 time tests ran, requests go servicebus , stuck there. need see output of start servicebus command see went wrong.
any thought how write output of process log file?
you need phone call $servicebuscommand->getincrementalerroroutput()
, $servicebuscommand->getincrementaloutput()
regularly.
php symfony2 ubuntu phpunit
Comments
Post a Comment