/** * Checks to see if this value is greater 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 greater than the one passed */ public function gt($money) { $money = $this->makeMoney($money); return $this->amount->gt($money->convert($this->currency)->amount); }
/** * @dataProvider invalidNumProvider * @expectedException fValidationException */ public function testGtFail($number) { $num = new fNumber('1'); $num->gt($number); }