@@ -21,38 +21,38 @@ public function testBool(): void
21
21
$ model = Casting::query ()->create (['booleanValue ' => true ]);
22
22
23
23
self ::assertIsBool ($ model ->booleanValue );
24
- self ::assertEquals (true , $ model ->booleanValue );
24
+ self ::assertSame (true , $ model ->booleanValue );
25
25
26
26
$ model ->update (['booleanValue ' => false ]);
27
27
$ check = Casting::query ()->find ($ model ->_id );
28
28
29
29
self ::assertIsBool ($ check ->booleanValue );
30
- self ::assertEquals (false , $ check ->booleanValue );
30
+ self ::assertSame (false , $ check ->booleanValue );
31
31
32
32
$ model ->update (['booleanValue ' => 1 ]);
33
33
$ check = Casting::query ()->find ($ model ->_id );
34
34
35
35
self ::assertIsBool ($ check ->booleanValue );
36
- self ::assertEquals (true , $ check ->booleanValue );
36
+ self ::assertSame (true , $ check ->booleanValue );
37
37
38
38
$ model ->update (['booleanValue ' => 0 ]);
39
39
$ check = Casting::query ()->find ($ model ->_id );
40
40
41
41
self ::assertIsBool ($ check ->booleanValue );
42
- self ::assertEquals (false , $ check ->booleanValue );
42
+ self ::assertSame (false , $ check ->booleanValue );
43
43
}
44
44
45
45
public function testBoolAsString (): void
46
46
{
47
47
$ model = Casting::query ()->create (['booleanValue ' => '1.79 ' ]);
48
48
49
49
self ::assertIsBool ($ model ->booleanValue );
50
- self ::assertEquals (true , $ model ->booleanValue );
50
+ self ::assertSame (true , $ model ->booleanValue );
51
51
52
52
$ model ->update (['booleanValue ' => '0 ' ]);
53
53
$ check = Casting::query ()->find ($ model ->_id );
54
54
55
55
self ::assertIsBool ($ check ->booleanValue );
56
- self ::assertEquals (false , $ check ->booleanValue );
56
+ self ::assertSame (false , $ check ->booleanValue );
57
57
}
58
58
}
0 commit comments