Beispiel #1
0
 public function testCheckIfPositiveNumberNegative()
 {
     $values = array("-86.5", -43);
     foreach ($values as $value) {
         $isPositive = Helpers::checkIfPositiveNumber($value);
         $this->assertFalse($isPositive);
     }
 }
Beispiel #2
0
 /**
  * @param $checkedVariable
  * @return bool
  */
 public static function checkIfNotNegativeNumber($checkedVariable)
 {
     return Helpers::checkIfPositiveNumber($checkedVariable) || Helpers::checkIfZero($checkedVariable);
 }