File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
tests/Mink/features/bootstrap Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function checkCart($quantity, $amount)
5050 $ element = Helper::findElements ($ this , ['quantity ' , 'amount ' ]);
5151
5252 $ check = array (
53- 'quantity ' => array (Helper:: intValue ( $ element ['quantity ' ]->getText () ), $ quantity ),
53+ 'quantity ' => array (( int ) $ element ['quantity ' ]->getText (), $ quantity ),
5454 'amount ' => Helper::floatArray (array ($ element ['amount ' ]->getText (), $ amount ))
5555 );
5656
Original file line number Diff line number Diff line change @@ -79,20 +79,6 @@ public static function floatValue($value)
7979 return floatval ($ matches [0 ]);
8080 }
8181
82- /**
83- * Converts the value to an integer
84- * @param $value
85- * @return int
86- */
87- public static function intValue ($ value )
88- {
89- if (is_int (($ value ))) {
90- return $ value ;
91- }
92-
93- return intval ($ value );
94- }
95-
9682 /**
9783 * Converts values with key in $keys to floats
9884 * @param array $values
You can’t perform that action at this time.
0 commit comments