@@ -28,7 +28,7 @@ public function testValidEnum()
28
28
29
29
public function testInvalidEnumContainsNonString ()
30
30
{
31
- self :: expectException (InvalidArgumentException::class);
31
+ $ this -> expectException (InvalidArgumentException::class);
32
32
$ enum = ['value1 ' , 2 ];
33
33
new With (enum: $ enum );
34
34
}
@@ -42,7 +42,7 @@ public function testValidConstString()
42
42
43
43
public function testInvalidConstEmptyString ()
44
44
{
45
- self :: expectException (InvalidArgumentException::class);
45
+ $ this -> expectException (InvalidArgumentException::class);
46
46
$ const = ' ' ;
47
47
new With (const: $ const );
48
48
}
@@ -56,7 +56,7 @@ public function testValidPattern()
56
56
57
57
public function testInvalidPatternEmptyString ()
58
58
{
59
- self :: expectException (InvalidArgumentException::class);
59
+ $ this -> expectException (InvalidArgumentException::class);
60
60
$ pattern = ' ' ;
61
61
new With (pattern: $ pattern );
62
62
}
@@ -70,7 +70,7 @@ public function testValidMinLength()
70
70
71
71
public function testInvalidMinLengthNegative ()
72
72
{
73
- self :: expectException (InvalidArgumentException::class);
73
+ $ this -> expectException (InvalidArgumentException::class);
74
74
new With (minLength: -1 );
75
75
}
76
76
@@ -85,7 +85,7 @@ public function testValidMinLengthAndMaxLength()
85
85
86
86
public function testInvalidMaxLengthLessThanMinLength ()
87
87
{
88
- self :: expectException (InvalidArgumentException::class);
88
+ $ this -> expectException (InvalidArgumentException::class);
89
89
new With (minLength: 10 , maxLength: 5 );
90
90
}
91
91
@@ -98,7 +98,7 @@ public function testValidMinimum()
98
98
99
99
public function testInvalidMinimumNegative ()
100
100
{
101
- self :: expectException (InvalidArgumentException::class);
101
+ $ this -> expectException (InvalidArgumentException::class);
102
102
new With (minimum: -1 );
103
103
}
104
104
@@ -111,7 +111,7 @@ public function testValidMultipleOf()
111
111
112
112
public function testInvalidMultipleOfNegative ()
113
113
{
114
- self :: expectException (InvalidArgumentException::class);
114
+ $ this -> expectException (InvalidArgumentException::class);
115
115
new With (multipleOf: -5 );
116
116
}
117
117
@@ -126,7 +126,7 @@ public function testValidExclusiveMinimumAndMaximum()
126
126
127
127
public function testInvalidExclusiveMaximumLessThanExclusiveMinimum ()
128
128
{
129
- self :: expectException (InvalidArgumentException::class);
129
+ $ this -> expectException (InvalidArgumentException::class);
130
130
new With (exclusiveMinimum: 10 , exclusiveMaximum: 5 );
131
131
}
132
132
@@ -141,7 +141,7 @@ public function testValidMinItemsAndMaxItems()
141
141
142
142
public function testInvalidMaxItemsLessThanMinItems ()
143
143
{
144
- self :: expectException (InvalidArgumentException::class);
144
+ $ this -> expectException (InvalidArgumentException::class);
145
145
new With (minItems: 5 , maxItems: 1 );
146
146
}
147
147
@@ -153,7 +153,7 @@ public function testValidUniqueItemsTrue()
153
153
154
154
public function testInvalidUniqueItemsFalse ()
155
155
{
156
- self :: expectException (InvalidArgumentException::class);
156
+ $ this -> expectException (InvalidArgumentException::class);
157
157
new With (uniqueItems: false );
158
158
}
159
159
@@ -168,7 +168,7 @@ public function testValidMinContainsAndMaxContains()
168
168
169
169
public function testInvalidMaxContainsLessThanMinContains ()
170
170
{
171
- self :: expectException (InvalidArgumentException::class);
171
+ $ this -> expectException (InvalidArgumentException::class);
172
172
new With (minContains: 3 , maxContains: 1 );
173
173
}
174
174
@@ -189,7 +189,7 @@ public function testValidMinPropertiesAndMaxProperties()
189
189
190
190
public function testInvalidMaxPropertiesLessThanMinProperties ()
191
191
{
192
- self :: expectException (InvalidArgumentException::class);
192
+ $ this -> expectException (InvalidArgumentException::class);
193
193
new With (minProperties: 5 , maxProperties: 1 );
194
194
}
195
195
@@ -228,7 +228,7 @@ enum: ['value1', 'value2'],
228
228
229
229
public function testInvalidCombination ()
230
230
{
231
- self :: expectException (InvalidArgumentException::class);
231
+ $ this -> expectException (InvalidArgumentException::class);
232
232
new With (minLength: -1 , maxLength: -2 );
233
233
}
234
234
}
0 commit comments