diff --git a/src/BackgroundProcess.php b/src/BackgroundProcess.php index 83ef9bf..48aeb32 100644 --- a/src/BackgroundProcess.php +++ b/src/BackgroundProcess.php @@ -6,7 +6,7 @@ /** - * QueueHandler + * BackgroundProcess * * @author Oliver Stark * @package AsyncQueue @@ -22,7 +22,7 @@ class BackgroundProcess protected $command; /** - * QueueHandler constructor. + * BackgroundProcess constructor. * * @param \ostark\AsyncQueue\QueueCommand|null $command */ @@ -62,5 +62,4 @@ public function start() return $process; } - } diff --git a/src/QueueCommand.php b/src/QueueCommand.php index 41b591d..320535c 100644 --- a/src/QueueCommand.php +++ b/src/QueueCommand.php @@ -1,6 +1,4 @@ -start(); + $bgProcess = new BackgroundProcess($command); + $process = $bgProcess->start(); $this->assertEquals(0, $process->getExitCode()); $this->assertTrue($process->isSuccessful());