File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public static function fromSecondsAndNanoseconds(
65
65
*/
66
66
public static function fromMilliseconds (int $ milliseconds ): self
67
67
{
68
- if (0 >= $ milliseconds ) {
68
+ if (0 > $ milliseconds ) {
69
69
throw Exception \InvalidMilliseconds::notGreaterThanZero ($ milliseconds );
70
70
}
71
71
Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ public function testFromSecondsAndNanosecondsReturnsDuration(): void
94
94
95
95
/**
96
96
* @dataProvider \Ergebnis\DataProvider\IntProvider::lessThanZero
97
- * @dataProvider \Ergebnis\DataProvider\IntProvider::zero
98
97
*/
99
98
public function testFromMillisecondsRejectsInvalidValue (int $ milliseconds ): void
100
99
{
@@ -123,6 +122,11 @@ public function testFromMillisecondsReturnsDuration(
123
122
public static function provideMillisecondsSecondsAndNanoseconds (): iterable
124
123
{
125
124
$ values = [
125
+ 'zero ' => [
126
+ 0 ,
127
+ 0 ,
128
+ 0 ,
129
+ ],
126
130
'one ' => [
127
131
1 ,
128
132
0 ,
You can’t perform that action at this time.
0 commit comments