/** * Checks to see if this value is less than the one passed * * @throws fValidationException When `$money` is not a valid number/monetary value * * @param fMoney|string|integer $money The money object to compare to - a string or integer will be converted to the default currency (if defined) * @return boolean If this value is less than the one passed */ public function lt($money) { $money = $this->makeMoney($money); return $this->amount->lt($money->convert($this->currency)->amount); }
/** * @dataProvider invalidNumProvider * @expectedException fValidationException */ public function testLtFail($number) { $num = new fNumber('1'); $num->lt($number); }