aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Wells <bruce.wells@simparel.com>2018-10-25 18:42:11 +0300
committerBruce Wells <bruce.wells@simparel.com>2018-10-25 18:43:57 +0300
commit334dd26e3c78a36002aed34aa26aa526b11c5dfb (patch)
tree28a0abef9e0e48df01660985339e93c69a2cd746 /src
parentb9f72a001bca4772a003248595ad20b13a5b2277 (diff)
Removing DivisionByZeroException testing for now
Added more unit tests.
Diffstat (limited to 'src')
-rw-r--r--src/NXP/Classes/Token/TokenDivision.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/NXP/Classes/Token/TokenDivision.php b/src/NXP/Classes/Token/TokenDivision.php
index a85bec5..5bbc35e 100644
--- a/src/NXP/Classes/Token/TokenDivision.php
+++ b/src/NXP/Classes/Token/TokenDivision.php
@@ -59,10 +59,6 @@ class TokenDivision extends AbstractOperator
throw new IncorrectExpressionException("Division requires two operators");
}
- if ($op2->getValue() == 0){
- throw new DivisionByZeroException();
- }
-
$result = $op2->getValue() != 0 ? $op1->getValue() / $op2->getValue() : 0;
return new TokenNumber($result);