PHP Class Jobby\Tests\BackgroundJobTest

Inheritance: extends PHPUnit_Framework_TestCase, use trait Jobby\SerializerTrait
Afficher le fichier Open project: hellogerard/jobby

Méthodes publiques

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

Méthodes protégées

Méthode Description
setUp ( )
tearDown ( )

Private Methods

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

Method Details

haltDirProvider() public méthode

public haltDirProvider ( )

runProvider() public méthode

public runProvider ( )

setUp() protected méthode

protected setUp ( )

tearDown() protected méthode

protected tearDown ( )

testCheckMaxRuntime() public méthode

public testCheckMaxRuntime ( )

testCheckMaxRuntimeShouldFailIsExceeded() public méthode

testClosureNotReturnTrue() public méthode

testHaltDir() public méthode

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

testHideStdOutByDefault() public méthode

testInvalidCommand() public méthode

public testInvalidCommand ( )

testMailShouldTriggerHelper() public méthode

testNotSendMailOnMissingRecipients() public méthode

testRun() public méthode

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

testShouldCreateLogFolder() public méthode