PHP Class Jobby\Tests\HelperTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: hellogerard/jobby

Méthodes publiques

Méthode Description
dataProviderTestEscape ( ) : array
testAquireAndReleaseLock ( )
testAquireLockShouldFailOnSecondTry ( )
testEscape ( string $input, string $expected )
testExceptionIfAquireFails ( )
testGetApplicationEnv ( )
testGetApplicationEnvShouldBeNullIfUndefined ( )
testGetHostname ( )
testGetLocklifetime ( )
testGetPlatform ( )
testGetTempDir ( )
testItReturnsTheCorrectNullSystemDeviceForUnix ( ) : void
testItReturnsTheCorrectNullSystemDeviceForWindows ( ) : void
testLockFileShouldContainCurrentPid ( )
testLockLifetimeShouldBeZeroIfFileDoesNotExists ( )
testLockLifetimeShouldBeZeroIfFileIsEmpty ( )
testLockLifetimeShouldBeZeroIfItContainsAInvalidPid ( )
testPlatformConstants ( )
testReleaseNonExistin ( )
testSendMail ( )

Méthodes protégées

Méthode Description
setUp ( )
tearDown ( )

Private Methods

Méthode Description
getSwiftMailerMock ( ) : Swift_Mailer

Method Details

dataProviderTestEscape() public méthode

public dataProviderTestEscape ( ) : array
Résultat array

setUp() protected méthode

protected setUp ( )

tearDown() protected méthode

protected tearDown ( )

testAquireAndReleaseLock() public méthode

testAquireLockShouldFailOnSecondTry() public méthode

testEscape() public méthode

public testEscape ( string $input, string $expected )
$input string
$expected string

testExceptionIfAquireFails() public méthode

testGetApplicationEnv() public méthode

testGetApplicationEnvShouldBeNullIfUndefined() public méthode

testGetHostname() public méthode

public testGetHostname ( )

testGetLocklifetime() public méthode

public testGetLocklifetime ( )

testGetPlatform() public méthode

public testGetPlatform ( )

testGetTempDir() public méthode

public testGetTempDir ( )

testItReturnsTheCorrectNullSystemDeviceForUnix() public méthode

testItReturnsTheCorrectNullSystemDeviceForWindows() public méthode

testLockFileShouldContainCurrentPid() public méthode

testLockLifetimeShouldBeZeroIfFileDoesNotExists() public méthode

testLockLifetimeShouldBeZeroIfFileIsEmpty() public méthode

testLockLifetimeShouldBeZeroIfItContainsAInvalidPid() public méthode

testPlatformConstants() public méthode

testReleaseNonExistin() public méthode

testSendMail() public méthode

public testSendMail ( )