@@ -64,7 +64,7 @@ public function testGreaterThanRule()
64
64
65
65
public function testGreaterThanOrEqualRule ()
66
66
{
67
- $ rule = Rule::numeric ()->greaterThanOrEqual ('some_field ' );
67
+ $ rule = Rule::numeric ()->greaterThanOrEqualTo ('some_field ' );
68
68
$ this ->assertEquals ('numeric|gte:some_field ' , (string ) $ rule );
69
69
}
70
70
@@ -82,7 +82,7 @@ public function testLessThanRule()
82
82
83
83
public function testLessThanOrEqualRule ()
84
84
{
85
- $ rule = Rule::numeric ()->lessThanOrEqual ('some_field ' );
85
+ $ rule = Rule::numeric ()->lessThanOrEqualTo ('some_field ' );
86
86
$ this ->assertEquals ('numeric|lte:some_field ' , (string ) $ rule );
87
87
}
88
88
@@ -139,7 +139,7 @@ public function testChainedRules()
139
139
$ rule = Rule::numeric ()
140
140
->integer ()
141
141
->multipleOf (10 )
142
- ->lessThanOrEqual ('some_field ' )
142
+ ->lessThanOrEqualTo ('some_field ' )
143
143
->max (100 );
144
144
$ this ->assertEquals ('numeric|integer|multiple_of:10|lte:some_field|max:100 ' , (string ) $ rule );
145
145
@@ -229,7 +229,7 @@ public function testNumericValidation()
229
229
230
230
$ this ->assertEmpty ($ validator ->errors ()->first ('numeric ' ));
231
231
232
- $ rule = Rule::numeric ()->greaterThanOrEqual ('some_field ' );
232
+ $ rule = Rule::numeric ()->greaterThanOrEqualTo ('some_field ' );
233
233
234
234
$ validator = new Validator (
235
235
$ trans ,
@@ -259,7 +259,7 @@ public function testNumericValidation()
259
259
260
260
$ this ->assertEmpty ($ validator ->errors ()->first ('numeric ' ));
261
261
262
- $ rule = Rule::numeric ()->lessThanOrEqual ('some_field ' );
262
+ $ rule = Rule::numeric ()->lessThanOrEqualTo ('some_field ' );
263
263
264
264
$ validator = new Validator (
265
265
$ trans ,
@@ -329,7 +329,7 @@ public function testNumericValidation()
329
329
330
330
$ this ->assertEmpty ($ validator ->errors ()->first ('numeric ' ));
331
331
332
- $ rule = Rule::numeric ()->size (10 );
332
+ $ rule = Rule::numeric ()->exactly (10 );
333
333
334
334
$ validator = new Validator (
335
335
$ trans ,
@@ -342,7 +342,7 @@ public function testNumericValidation()
342
342
343
343
public function testUniquenessValidation ()
344
344
{
345
- $ rule = Rule::numeric ()->integer ()->digits (2 )->size (2 );
345
+ $ rule = Rule::numeric ()->integer ()->digits (2 )->exactly (2 );
346
346
$ this ->assertEquals ('numeric|integer|digits:2|size:2 ' , (string ) $ rule );
347
347
}
348
348
}
0 commit comments