PHP Class Jobby\Tests\BackgroundJobTest

Inheritance: extends PHPUnit_Framework_TestCase, use trait Jobby\SerializerTrait
Datei anzeigen Open project: hellogerard/jobby

Public Methods

Method Description
haltDirProvider ( )
runProvider ( )
testCheckMaxRuntime ( )
testCheckMaxRuntimeShouldFailIsExceeded ( )
testClosureNotReturnTrue ( )
testHaltDir ( boolean $createFile, boolean $jobRuns )
testHideStdOutByDefault ( )
testInvalidCommand ( )
testMailShouldTriggerHelper ( )
testNotSendMailOnMissingRecipients ( )
testRun ( array $config, string $expectedOutput )
testShouldCreateLogFolder ( )

Protected Methods

Method Description
setUp ( )
tearDown ( )

Private Methods

Method Description
getJobConfig ( array $config ) : array
getLogContent ( ) : string
runJob ( array $config, Helper $helper = null )

Method Details

haltDirProvider() public method

public haltDirProvider ( )

runProvider() public method

public runProvider ( )

setUp() protected method

protected setUp ( )

tearDown() protected method

protected tearDown ( )

testCheckMaxRuntime() public method

public testCheckMaxRuntime ( )

testCheckMaxRuntimeShouldFailIsExceeded() public method

testClosureNotReturnTrue() public method

testHaltDir() public method

public testHaltDir ( boolean $createFile, boolean $jobRuns )
$createFile boolean
$jobRuns boolean

testHideStdOutByDefault() public method

testInvalidCommand() public method

public testInvalidCommand ( )

testMailShouldTriggerHelper() public method

testNotSendMailOnMissingRecipients() public method

testRun() public method

public testRun ( array $config, string $expectedOutput )
$config array
$expectedOutput string

testShouldCreateLogFolder() public method