@@ -78,6 +78,9 @@ public static function invalidProvider(): array {
7878 ["1/2 * * * * php test.php " , ["Line 1 has invalid value for Minute: 1 (only wildcard * or range supported) " ]],
7979 ["*/1/2 * * * * php test.php " , ["Line 1 has too many step values for Minute: */1/2 " ]],
8080 ["2-4-6/2/1 * * * * php test.php " , ["Line 1 has too many step values for Minute: 2-4-6/2/1 " ]],
81+ ["10-9 * * * * php test.php " , ["Line 1 has invalid value for Minute: 10-9 - values must be ordered " ]],
82+ ["59-0 * * * * php test.php " , ["Line 1 has invalid value for Minute: 59-0 - values must be ordered " ]],
83+ ["10-9/2 * * * * php test.php " , ["Line 1 has invalid value for Minute: 10-9 - values must be ordered " ]],
8184
8285 ["* -1 * * * php test.php " , ["Line 1 has invalid value for Hour: -1 " ]],
8386 ["* -1-23 * * * php test.php " , ["Line 1 has invalid value for Hour: -1 " ]],
@@ -90,6 +93,8 @@ public static function invalidProvider(): array {
9093 ["* 24-26/2 * * * php test.php " , ["Line 1 has invalid value for Hour: 24 " ,"Line 1 has invalid value for Hour: 26 " ]],
9194 ["* 1/2 * * * php test.php " , ["Line 1 has invalid value for Hour: 1 (only wildcard * or range supported) " ]],
9295 ["* 1/2/3 * * * php test.php " , ["Line 1 has too many step values for Hour: 1/2/3 " ]],
96+ ["* 23-0 * * * php test.php " , ["Line 1 has invalid value for Hour: 23-0 - values must be ordered " ]],
97+ ["* 12-5 * * * php test.php " , ["Line 1 has invalid value for Hour: 12-5 - values must be ordered " ]],
9398
9499 ["* * -2 * * php test.php " , ["Line 1 has invalid value for Day of month: -2 " ]],
95100 ["* * -2-14 * * php test.php " , ["Line 1 has invalid value for Day of month: -2 " ]],
@@ -103,6 +108,8 @@ public static function invalidProvider(): array {
103108 ["* * 32-35/2 * * php test.php " , ["Line 1 has invalid value for Day of month: 32 " , "Line 1 has invalid value for Day of month: 35 " ]],
104109 ["* * 7/14 * * php test.php " , ["Line 1 has invalid value for Day of month: 7 (only wildcard * or range supported) " ]],
105110 ["* * 7/14/28 * * php test.php " , ["Line 1 has too many step values for Day of month: 7/14/28 " ]],
111+ ["* * 31-1 * * php test.php " , ["Line 1 has invalid value for Day of month: 31-1 - values must be ordered " ]],
112+ ["* * 15-10 * * php test.php " , ["Line 1 has invalid value for Day of month: 15-10 - values must be ordered " ]],
106113
107114 ["* * * -3 * php test.php " , ["Line 1 has invalid value for Month: -3 " ]],
108115 ["* * * -3-12 * php test.php " , ["Line 1 has invalid value for Month: -3 " ]],
@@ -133,6 +140,9 @@ public static function invalidProvider(): array {
133140 ["* * * * 8/2 php test.php " , ["Line 1 has invalid value for Day of week: 8 (only wildcard * or range supported) " ]],
134141 ["* * * * 3/6/9 php test.php " , ["Line 1 has too many step values for Day of week: 3/6/9 " ]],
135142 ["* * * * thurs php test.php " , ["Line 1 has invalid value for Day of week: thurs " ]],
143+ ["* * * * 6-0 php test.php " , ["Line 1 has invalid value for Day of week: 6-0 - values must be ordered " ]],
144+ ["* * * * 5-2 php test.php " , ["Line 1 has invalid value for Day of week: 5-2 - values must be ordered " ]],
145+ ["* * * * fri-mon php test.php " , ["Line 1 has invalid value for Day of week: fri-mon - values in range must be numeric " ]],
136146
137147 ["* * * 18 45 php test.php " , ["Line 1 has invalid value for Month: 18 " , "Line 1 has invalid value for Day of week: 45 " ]],
138148 ];
0 commit comments