|
| normalizeConvertsCronCommand ($expression, $expected) |
|
| convertKeywordsToCronCommandConvertsValidKeywords ($keyword, $expectedCronCommand) |
|
| convertKeywordsToCronCommandReturnsUnchangedCommandIfKeywordWasNotFound () |
|
| normalizeFieldsValidDataProvider () |
|
| normalizeFieldsConvertsField ($expression, $expected) |
|
| normalizeMonthAndWeekdayFieldReturnsNormalizedListForValidExpression ($expression, $isMonthField, $expected) |
|
| normalizeMonthAndWeekdayFieldThrowsExceptionForInvalidExpression ($expression, $isMonthField) |
|
| normalizeIntegerFieldReturnsNormalizedListForValidExpression ($expression, $expected) |
|
| normalizeIntegerFieldThrowsExceptionForInvalidExpressions ($expression, $lowerBound, $upperBound) |
|
| splitFieldsReturnsIntegerArrayWithFieldsSplitByWhitespace () |
|
| splitFieldsThrowsExceptionIfCronCommandDoesNotContainFiveFields ($cronCommand) |
|
| convertRangeToListOfValuesReturnsCorrectListForValidRanges ($range, $expected) |
|
| convertRangeToListOfValuesThrowsExceptionForInvalidRanges ($range) |
|
| reduceListOfValuesByStepValueReturnsCorrectListOfValues ($stepExpression, $expected) |
|
| reduceListOfValuesByStepValueThrowsExceptionForInvalidStepExpressions ($stepExpression) |
|
| normalizeMonthAndWeekdayNormalizesAMonth () |
|
| normalizeMonthAndWeekdayNormalizesAWeekday () |
|
| normalizeMonthAndWeekdayLeavesValueUnchanged () |
|
| normalizeMonthConvertsName ($monthName, $expectedInteger) |
|
| normalizeMonthReturnsInteger ($monthName, $expectedInteger) |
|
| normalizeMonthThrowsExceptionForInvalidMonthRepresentation ($invalidMonthName) |
|
| normalizeWeekdayConvertsName ($weekday, $expectedInteger) |
|
| normalizeWeekdayReturnsInteger ($weekday, $expectedInteger) |
|
| normalizeWeekdayThrowsExceptionForInvalidWeekdayRepresentation ($weekday) |
|
Test case
Definition at line 24 of file NormalizeCommandTest.php.
convertKeywordsToCronCommandConvertsValidKeywords |
( |
|
$keyword, |
|
|
|
$expectedCronCommand |
|
) |
| |
convertKeywordsToCronCommandReturnsUnchangedCommandIfKeywordWasNotFound |
( |
| ) |
|
convertRangeToListOfValuesReturnsCorrectListForValidRanges |
( |
|
$range, |
|
|
|
$expected |
|
) |
| |
convertRangeToListOfValuesThrowsExceptionForInvalidRanges |
( |
|
$range | ) |
|
static invalidCronCommandFieldsDataProvider |
( |
| ) |
|
|
static |
static invalidMonthNamesDataProvider |
( |
| ) |
|
|
static |
static invalidRangeDataProvider |
( |
| ) |
|
|
static |
static invalidStepsDataProvider |
( |
| ) |
|
|
static |
static invalidWeekdayDataProvider |
( |
| ) |
|
|
static |
normalizeConvertsCronCommand |
( |
|
$expression, |
|
|
|
$expected |
|
) |
| |
normalizeFieldsConvertsField |
( |
|
$expression, |
|
|
|
$expected |
|
) |
| |
normalizeFieldsValidDataProvider |
( |
| ) |
|
static normalizeIntegerFieldInvalidDataProvider |
( |
| ) |
|
|
static |
normalizeIntegerFieldReturnsNormalizedListForValidExpression |
( |
|
$expression, |
|
|
|
$expected |
|
) |
| |
normalizeIntegerFieldThrowsExceptionForInvalidExpressions |
( |
|
$expression, |
|
|
|
$lowerBound, |
|
|
|
$upperBound |
|
) |
| |
static normalizeIntegerFieldValidDataProvider |
( |
| ) |
|
|
static |
static normalizeMonthAndWeekdayFieldInvalidDataProvider |
( |
| ) |
|
|
static |
normalizeMonthAndWeekdayFieldReturnsNormalizedListForValidExpression |
( |
|
$expression, |
|
|
|
$isMonthField, |
|
|
|
$expected |
|
) |
| |
normalizeMonthAndWeekdayFieldThrowsExceptionForInvalidExpression |
( |
|
$expression, |
|
|
|
$isMonthField |
|
) |
| |
static normalizeMonthAndWeekdayFieldValidDataProvider |
( |
| ) |
|
|
static |
normalizeMonthAndWeekdayLeavesValueUnchanged |
( |
| ) |
|
normalizeMonthAndWeekdayNormalizesAMonth |
( |
| ) |
|
normalizeMonthAndWeekdayNormalizesAWeekday |
( |
| ) |
|
normalizeMonthConvertsName |
( |
|
$monthName, |
|
|
|
$expectedInteger |
|
) |
| |
normalizeMonthReturnsInteger |
( |
|
$monthName, |
|
|
|
$expectedInteger |
|
) |
| |
normalizeMonthThrowsExceptionForInvalidMonthRepresentation |
( |
|
$invalidMonthName | ) |
|
static normalizeValidDataProvider |
( |
| ) |
|
|
static |
normalizeWeekdayConvertsName |
( |
|
$weekday, |
|
|
|
$expectedInteger |
|
) |
| |
normalizeWeekdayReturnsInteger |
( |
|
$weekday, |
|
|
|
$expectedInteger |
|
) |
| |
normalizeWeekdayThrowsExceptionForInvalidWeekdayRepresentation |
( |
|
$weekday | ) |
|
reduceListOfValuesByStepValueReturnsCorrectListOfValues |
( |
|
$stepExpression, |
|
|
|
$expected |
|
) |
| |
reduceListOfValuesByStepValueThrowsExceptionForInvalidStepExpressions |
( |
|
$stepExpression | ) |
|
splitFieldsReturnsIntegerArrayWithFieldsSplitByWhitespace |
( |
| ) |
|
splitFieldsThrowsExceptionIfCronCommandDoesNotContainFiveFields |
( |
|
$cronCommand | ) |
|
static validMonthNamesDataProvider |
( |
| ) |
|
|
static |
static validRangeDataProvider |
( |
| ) |
|
|
static |
static validSpecialKeywordsDataProvider |
( |
| ) |
|
|
static |
static validStepsDataProvider |
( |
| ) |
|
|
static |
static validWeekdayDataProvider |
( |
| ) |
|
|
static |