Jobby\Tests\JobbyTest::testDefaultOptionsShouldBeMerged PHP Method

testDefaultOptionsShouldBeMerged() public method

This is the same test as testClosure but (!) we use the default options to set the output file.
    public function testDefaultOptionsShouldBeMerged()
    {
        $jobby = new Jobby(['output' => $this->logFile]);
        $jobby->add('HelloWorldClosure', ['command' => static function () {
            echo "A function!";
            return true;
        }, 'schedule' => '* * * * *']);
        $jobby->run();
        // Job runs asynchronously, so wait a bit
        sleep($this->getSleepTime());
        $this->assertEquals('A function!', $this->getLogContent());
    }