Jobby\Tests\JobbyTest::testShell PHP Method

testShell() public method

public testShell ( )
    public function testShell()
    {
        $jobby = new Jobby();
        $jobby->add('HelloWorldShell', ['command' => 'php ' . __DIR__ . '/_files/helloworld.php', 'schedule' => '* * * * *', 'output' => $this->logFile]);
        $jobby->run();
        // Job runs asynchronously, so wait a bit
        sleep($this->getSleepTime());
        $this->assertEquals('Hello World!', $this->getLogContent());
    }