PhpCommon\IntMath\Tests\IntMath
- ✓ The negate() method throws an exception if the argument is not an integer
- ✓ The negate() method returns the given value with the opposite sign
- ✓ The negate() method does not negate the smallest negative integer
- ✓ The add() method returns the sum of the arguments
- ✓ The add() method throws an exception if one of the arguments is not an integer
- ✓ The add() method wraps around the result on overflow
- ✓ The subtract() method throws an exception if one of the arguments is not an integer
- ✓ The subtract() method returns the difference of the arguments
- ✓ The subtract() method wraps around the result on overflow
- ✓ The multiply() method throws an exception if one of the arguments is not an integer
- ✓ The multiply() method returns the product of the arguments
- ✓ The multiply() method wraps around the result on overflow
- ✓ The divide() method throws an exception if one of the arguments is not an integer
- ✓ The divide() method returns the quotient of dividing one operand from another
- ✓ The divide() method rounds the result towards zero
- ✓ The divide() method throws an exception when a division by zero occurs
- ✓ The divide() method returns the negative largest integer on overflow