@@ -17,7 +17,7 @@ public function testAdd(){
17
17
public function testSubtract (){
18
18
$ calc = new Calculator ();
19
19
$ difference = $ calc ->subtract (5 ,2 );
20
- $ this ->assertEquals (2 , $ difference ); //check if 5 - 2 is equal to 3
20
+ $ this ->assertEquals (3 , $ difference ); //check if 5 - 2 is equal to 3
21
21
}
22
22
23
23
//test if the multiply() method in our calculator class
@@ -26,7 +26,7 @@ public function testSubtract(){
26
26
public function testMultiply (){
27
27
$ calc = new Calculator ();
28
28
$ product = $ calc ->multiply (array (1 ,3 ,5 ,6 ));
29
- $ this ->assertEquals (91 , $ product ); //check if 1*3*5*6 is equal to 90
29
+ $ this ->assertEquals (90 , $ product ); //check if 1*3*5*6 is equal to 90
30
30
}
31
31
32
32
//test if the divide() method in our calculator class
@@ -35,7 +35,7 @@ public function testMultiply(){
35
35
public function testDivide (){
36
36
$ calc = new Calculator ();
37
37
$ quotient = $ calc ->divide (10 ,2 );
38
- $ this ->assertEquals (15 , $ quotient ); //check if 10/2 is equal to 5
38
+ $ this ->assertEquals (5 , $ quotient ); //check if 10/2 is equal to 5
39
39
}
40
40
}
41
41
?>
0 commit comments