55namespace Testo \Assert \Internal \Assertion \Traits ;
66
77use Testo \Assert \State \AssertException ;
8- use Testo \Assert \State \AssertTypeSuccess ;
8+ use Testo \Assert \State \AssertionComposite ;
99
1010/**
1111 * Contains methods for comparing numeric values
1212 * @property int|float $value
13- * @property AssertTypeSuccess $parent
13+ * @property AssertionComposite $parent
1414 */
1515trait NumericTrait
1616{
@@ -25,7 +25,7 @@ public function greaterThan(int|float $min, string $message = ''): self
2525 {
2626 $ str = "greater than ` {$ min }` " ;
2727 if ($ this ->value > $ min ) {
28- $ this ->parent ->log ($ str , $ message );
28+ $ this ->parent ->success ($ str , $ message );
2929 return $ this ;
3030 }
3131
@@ -47,7 +47,7 @@ public function greaterThanOrEqual(int|float $min, string $message = ''): self
4747 {
4848 $ str = "greater than or equal to ` {$ min }` " ;
4949 if ($ this ->value >= $ min ) {
50- $ this ->parent ->log ($ str , $ message );
50+ $ this ->parent ->success ($ str , $ message );
5151 return $ this ;
5252 }
5353
@@ -69,7 +69,7 @@ public function lessThan(int|float $max, string $message = ''): self
6969 {
7070 $ str = "less than ` {$ max }` " ;
7171 if ($ this ->value < $ max ) {
72- $ this ->parent ->log ($ str , $ message );
72+ $ this ->parent ->success ($ str , $ message );
7373 return $ this ;
7474 }
7575
@@ -91,7 +91,7 @@ public function lessThanOrEqual(int|float $max, string $message = ''): self
9191 {
9292 $ str = "less than or equal to ` {$ max }` " ;
9393 if ($ this ->value <= $ max ) {
94- $ this ->parent ->log ($ str , $ message );
94+ $ this ->parent ->success ($ str , $ message );
9595 return $ this ;
9696 }
9797
0 commit comments