diff --git a/tests/calculator_test.php b/tests/calculator_test.php index 73cbbf1..8a6384a 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -8,7 +8,7 @@ class CalculatorTest extends PHPUnit_Framework_TestCase{ public function testAdd(){ $calc = new Calculator(); $sum = $calc->add(array(2,3,4,5)); - $this->assertEquals(15, $sum); //check if 2+3+4+5 is equal to 14 + $this->assertEquals(14, $sum); //check if 2+3+4+5 is equal to 14 } //test if the subtract() method in our calculator class @@ -19,6 +19,7 @@ public function testSubtract(){ $difference = $calc->subtract(5,2); $this->assertEquals(3, $difference); //check if 5 - 2 is equal to 3 } + //test if the multiply() method in our calculator class //actually returns the product that