public function testShouldRunAllJobsAdded()
{
$jobby = new Jobby(['output' => $this->logFile]);
$jobby->add('job-1', ['schedule' => '* * * * *', 'command' => static function () {
echo 'job-1';
return true;
}]);
$jobby->add('job-2', ['schedule' => '* * * * *', 'command' => static function () {
echo 'job-2';
return true;
}]);
$jobby->run();
// Job runs asynchronously, so wait a bit
sleep($this->getSleepTime());
$this->assertContains('job-1', $this->getLogContent());
$this->assertContains('job-2', $this->getLogContent());
}