@@ -19,57 +19,57 @@ public function testMinValue(): void
1919 $ schema = new NumericSchema ();
2020 $ schema ->min (10 );
2121
22- $ this ->assertTrue ($ schema ->validate (10 ), " Failed asserting equals than minimum value " );
23- $ this ->assertTrue ($ schema ->validate (11 ), " Failed asserting number greater than minimum value " );
24- $ this ->assertFalse ($ schema ->validate (9 ), " Failed asserting number lower than minimum value " );
22+ $ this ->assertTrue ($ schema ->validate (10 ), ' Failed asserting equals than minimum value ' );
23+ $ this ->assertTrue ($ schema ->validate (11 ), ' Failed asserting number greater than minimum value ' );
24+ $ this ->assertFalse ($ schema ->validate (9 ), ' Failed asserting number lower than minimum value ' );
2525 }
2626
2727 public function testMaxValue (): void
2828 {
2929 $ schema = new NumericSchema ();
3030 $ schema ->max (10 );
3131
32- $ this ->assertTrue ($ schema ->validate (10 ), " Failed asserting equals than maximum value " );
33- $ this ->assertFalse ($ schema ->validate (11 ), " Failed asserting number greater than maximum value " );
34- $ this ->assertTrue ($ schema ->validate (9 ), " Failed asserting number lower than maximum value " );
32+ $ this ->assertTrue ($ schema ->validate (10 ), ' Failed asserting equals than maximum value ' );
33+ $ this ->assertFalse ($ schema ->validate (11 ), ' Failed asserting number greater than maximum value ' );
34+ $ this ->assertTrue ($ schema ->validate (9 ), ' Failed asserting number lower than maximum value ' );
3535 }
3636
3737 public function testRequirePositive (): void
3838 {
3939 $ schema = new NumericSchema ();
4040 $ schema ->positive ();
4141
42- $ this ->assertTrue ($ schema ->validate (1 ), " Failed asserting positive value " );
43- $ this ->assertFalse ($ schema ->validate (-1 ), " Failed asserting negative value (positive required) " );
42+ $ this ->assertTrue ($ schema ->validate (1 ), ' Failed asserting positive value ' );
43+ $ this ->assertFalse ($ schema ->validate (-1 ), ' Failed asserting negative value (positive required) ' );
4444 }
4545
4646 public function testTypeValidation (): void
4747 {
4848 $ schema = new NumericSchema ();
4949
50- $ this ->assertFalse ($ schema ->validate ('str ' ), " Numeric schema should not validate strings " );
51- $ this ->assertFalse ($ schema ->validate (new stdClass ()), " Numeric schema should not validate objects " );
52- $ this ->assertFalse ($ schema ->validate ([1 ,2 , 3 ]), " Numeric schema should validate arrays " );
50+ $ this ->assertFalse ($ schema ->validate ('str ' ), ' Numeric schema should not validate strings ' );
51+ $ this ->assertFalse ($ schema ->validate (new stdClass ()), ' Numeric schema should not validate objects ' );
52+ $ this ->assertFalse ($ schema ->validate ([1 , 2 , 3 ]), ' Numeric schema should validate arrays ' );
5353
54- $ this ->assertTrue ($ schema ->validate (1 ), " Numeric schema should validate integers " );
55- $ this ->assertTrue ($ schema ->validate (1.1 ), " Numeric schema should validate floats " );
54+ $ this ->assertTrue ($ schema ->validate (1 ), ' Numeric schema should validate integers ' );
55+ $ this ->assertTrue ($ schema ->validate (1.1 ), ' Numeric schema should validate floats ' );
5656 }
5757
5858 public function testExclusiveIntegerValidation (): void
5959 {
6060 $ schema = new NumericSchema ();
6161 $ schema ->integer ();
6262
63- $ this ->assertTrue ($ schema ->validate (1 ), " Numeric schema should validate integers (int only) " );
64- $ this ->assertFalse ($ schema ->validate (1.1 ), " Numeric schema should not validate floats (int only) " );
63+ $ this ->assertTrue ($ schema ->validate (1 ), ' Numeric schema should validate integers (int only) ' );
64+ $ this ->assertFalse ($ schema ->validate (1.1 ), ' Numeric schema should not validate floats (int only) ' );
6565 }
6666
6767 public function testExclusiveFloatValidation (): void
6868 {
6969 $ schema = new NumericSchema ();
7070 $ schema ->float ();
7171
72- $ this ->assertFalse ($ schema ->validate (1 ), " Numeric schema should not validate integers (floats only) " );
73- $ this ->assertTrue ($ schema ->validate (1.1 ), " Numeric schema should validate floats (floats only) " );
72+ $ this ->assertFalse ($ schema ->validate (1 ), ' Numeric schema should not validate integers (floats only) ' );
73+ $ this ->assertTrue ($ schema ->validate (1.1 ), ' Numeric schema should validate floats (floats only) ' );
7474 }
7575}
0 commit comments