Example #1
0
 public function testAdd()
 {
     $calc = new Calculator();
     $result = $calc->add(30, 12);
     // assert that your calculator added the numbers correctly!
     $this->assertEquals(42, $result);
 }
Example #2
0
 public function testAdd()
 {
     $calc = new Calculator();
     $result = $calc->add(30, 12);
     $this->assertEquals(42, $result);
 }