From cd316884cf132a5c0552135dc767e6813c177c3f Mon Sep 17 00:00:00 2001 From: csharp Date: Tue, 10 Feb 2015 15:52:07 +0530 Subject: [PATCH 1/2] Update calculator_test.php --- tests/calculator_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index 73cbbf1..fdcd534 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 From 61e5bd3957be4b1ebf4bf8b770b077cf044f6069 Mon Sep 17 00:00:00 2001 From: csharp Date: Tue, 10 Feb 2015 15:55:27 +0530 Subject: [PATCH 2/2] Update calculator_test.php --- tests/calculator_test.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/calculator_test.php b/tests/calculator_test.php index fdcd534..8a6384a 100644 --- a/tests/calculator_test.php +++ b/tests/calculator_test.php @@ -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