@@ -10,11 +10,11 @@ public function testDescription(): void
1010 {
1111 $ arrayList = new ArrayList (new Integer ());
1212 $ this ->assertFalse ($ arrayList ->isValid (['text ' ]));
13- $ this ->assertEquals ('Value must a valid array and Value must be a valid integer ' , $ arrayList ->getDescription ());
13+ $ this ->assertSame ('Value must a valid array and Value must be a valid integer ' , $ arrayList ->getDescription ());
1414
1515 $ arrayList = new ArrayList (new Integer (), 3 );
1616 $ this ->assertFalse ($ arrayList ->isValid (['a ' , 'b ' , 'c ' , 'd ' ]));
17- $ this ->assertEquals ('Value must a valid array no longer than 3 items and Value must be a valid integer ' , $ arrayList ->getDescription ());
17+ $ this ->assertSame ('Value must a valid array no longer than 3 items and Value must be a valid integer ' , $ arrayList ->getDescription ());
1818 }
1919
2020 public function testCanValidateTextValues (): void
@@ -26,7 +26,7 @@ public function testCanValidateTextValues(): void
2626 $ this ->assertFalse ($ arrayList ->isValid (['string ' , 'string ' , 3 ]));
2727 $ this ->assertFalse ($ arrayList ->isValid ('string ' ));
2828 $ this ->assertFalse ($ arrayList ->isValid ('string ' ));
29- $ this ->assertEquals (\Utopia \Validator::TYPE_STRING , $ arrayList ->getType ());
29+ $ this ->assertSame (\Utopia \Validator::TYPE_STRING , $ arrayList ->getType ());
3030 $ this ->assertInstanceOf (Text::class, $ arrayList ->getValidator ());
3131 }
3232
@@ -36,7 +36,7 @@ public function testCanValidateNumericValues(): void
3636 $ this ->assertTrue ($ arrayList ->isValid ([1 , 2 , 3 ]));
3737 $ this ->assertFalse ($ arrayList ->isValid (1 ));
3838 $ this ->assertFalse ($ arrayList ->isValid ('string ' ));
39- $ this ->assertEquals (\Utopia \Validator::TYPE_MIXED , $ arrayList ->getType ());
39+ $ this ->assertSame (\Utopia \Validator::TYPE_MIXED , $ arrayList ->getType ());
4040 $ this ->assertInstanceOf (Numeric::class, $ arrayList ->getValidator ());
4141 }
4242
@@ -46,7 +46,7 @@ public function testCanValidateNumericValuesWithBoundaries(): void
4646 $ this ->assertTrue ($ arrayList ->isValid ([1 ]));
4747 $ this ->assertTrue ($ arrayList ->isValid ([1 , 2 ]));
4848 $ this ->assertFalse ($ arrayList ->isValid ([1 , 2 , 3 ]));
49- $ this ->assertEquals ($ arrayList ->getType (), \Utopia \Validator::TYPE_MIXED );
49+ $ this ->assertSame ($ arrayList ->getType (), \Utopia \Validator::TYPE_MIXED );
5050 $ this ->assertInstanceOf (Numeric::class, $ arrayList ->getValidator ());
5151 }
5252}
0 commit comments