PHP Class Jobby\Tests\HelperTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: hellogerard/jobby

Public Methods

Method 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 ( )

Protected Methods

Method Description
setUp ( )
tearDown ( )

Private Methods

Method Description
getSwiftMailerMock ( ) : Swift_Mailer

Method Details

dataProviderTestEscape() public method

public dataProviderTestEscape ( ) : array
return array

setUp() protected method

protected setUp ( )

tearDown() protected method

protected tearDown ( )

testAquireAndReleaseLock() public method

testAquireLockShouldFailOnSecondTry() public method

testEscape() public method

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

testExceptionIfAquireFails() public method

testGetApplicationEnv() public method

testGetApplicationEnvShouldBeNullIfUndefined() public method

testGetHostname() public method

public testGetHostname ( )

testGetLocklifetime() public method

public testGetLocklifetime ( )

testGetPlatform() public method

public testGetPlatform ( )

testGetTempDir() public method

public testGetTempDir ( )

testItReturnsTheCorrectNullSystemDeviceForUnix() public method

testItReturnsTheCorrectNullSystemDeviceForWindows() public method

testLockFileShouldContainCurrentPid() public method

testLockLifetimeShouldBeZeroIfFileDoesNotExists() public method

testLockLifetimeShouldBeZeroIfFileIsEmpty() public method

testLockLifetimeShouldBeZeroIfItContainsAInvalidPid() public method

testPlatformConstants() public method

testReleaseNonExistin() public method

testSendMail() public method

public testSendMail ( )