Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/calculator_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down