@@ -23,7 +23,7 @@ class GreaterThanOrEqualValidatorWithPositiveOrZeroConstraintTest extends Greate
23
23
{
24
24
protected static function createConstraint (?array $ options = null ): Constraint
25
25
{
26
- return new PositiveOrZero ();
26
+ return new PositiveOrZero ($ options );
27
27
}
28
28
29
29
public static function provideValidComparisons (): array
@@ -86,6 +86,11 @@ public function testInvalidValuePath()
86
86
$ this ->markTestSkipped ('PropertyPath option is not used in PositiveOrZero constraint ' );
87
87
}
88
88
89
+ public static function provideAllValidComparisons (): array
90
+ {
91
+ self ::markTestSkipped ('The "value" option cannot be used in the PositiveOrZero constraint ' );
92
+ }
93
+
89
94
/**
90
95
* @dataProvider provideValidComparisonsToPropertyPath
91
96
*/
@@ -94,6 +99,11 @@ public function testValidComparisonToPropertyPath($comparedValue)
94
99
$ this ->markTestSkipped ('PropertyPath option is not used in PositiveOrZero constraint ' );
95
100
}
96
101
102
+ public function testNoViolationOnNullObjectWithPropertyPath ()
103
+ {
104
+ $ this ->markTestSkipped ('PropertyPath option is not used in PositiveOrZero constraint ' );
105
+ }
106
+
97
107
/**
98
108
* @dataProvider throwsOnInvalidStringDatesProvider
99
109
*/
@@ -106,4 +116,19 @@ public function testInvalidComparisonToPropertyPathAddsPathAsParameter()
106
116
{
107
117
$ this ->markTestSkipped ('PropertyPath option is not used in PositiveOrZero constraint ' );
108
118
}
119
+
120
+ public static function throwsOnInvalidStringDatesProvider (): array
121
+ {
122
+ self ::markTestSkipped ('The "value" option cannot be used in the PositiveOrZero constraint ' );
123
+ }
124
+
125
+ public static function provideAllInvalidComparisons (): array
126
+ {
127
+ self ::markTestSkipped ('The "value" option cannot be used in the Negative constraint ' );
128
+ }
129
+
130
+ public static function provideComparisonsToNullValueAtPropertyPath (): array
131
+ {
132
+ self ::markTestSkipped ('PropertyPath option is not used in PositiveOrZero constraint ' );
133
+ }
109
134
}
0 commit comments