File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class Renavam extends Sanitization
8
8
{
9
9
public function validateRenavam ($ attribute , $ renavam ): bool
10
10
{
11
- $ renavam = $ this ->sanitize ($ renavam );
11
+ $ renavam = $ this ->sanitize (( string ) $ renavam );
12
12
$ renavamArray = str_split ($ renavam );
13
13
$ digit = $ this ->determinarDigito ($ renavamArray );
14
14
Original file line number Diff line number Diff line change @@ -12,25 +12,25 @@ final class RenavamTest extends ValidatorTestCase
12
12
*
13
13
* @dataProvider renavamProvider
14
14
*/
15
- public function renavamValido ($ renavam , $ expected ): void
15
+ public function renavamValido ($ renavam , $ esperado ): void
16
16
{
17
17
$ instance = new Renavam ();
18
18
19
19
$ atual = $ instance ->validateRenavam ('' , $ renavam );
20
20
21
- $ this ->assertSame ($ expected , $ atual );
21
+ $ this ->assertSame ($ esperado , $ atual );
22
22
}
23
23
24
24
public function renavamProvider (): array
25
25
{
26
26
return [
27
27
'Input correto ' => [
28
28
'renavam ' => 639884962 ,
29
- 'expected ' => true ,
29
+ 'esperado ' => true ,
30
30
],
31
31
'Input incorreto ' => [
32
32
'renavam ' => 11111111111 ,
33
- 'expected ' => false
33
+ 'esperado ' => false
34
34
],
35
35
];
36
36
}
You can’t perform that action at this time.
0 commit comments