Jobby\Tests\BackgroundJobTest::testInvalidCommand PHP Method

testInvalidCommand() public method

public testInvalidCommand ( )
    public function testInvalidCommand()
    {
        $this->runJob(['command' => 'invalid-command']);
        $this->assertContains('invalid-command', $this->getLogContent());
        if ($this->helper->getPlatform() === Helper::UNIX) {
            $this->assertContains('not found', $this->getLogContent());
            $this->assertContains("ERROR: Job exited with status '127'", $this->getLogContent());
        } else {
            $this->assertContains('not recognized as an internal or external command', $this->getLogContent());
        }
    }