public function testAdd() { $abcd = new Calculator(2, 4); $addition = $abcd->add(); $this->assertEquals(6, $addition, 'addition failed!'); }
public function testAdd() { $c = new Calculator(); $result = $c->add(5, 10); $this->assertEquals(15, $result); }
public function testTrue() { $calculator = new Calculator(); $actual = $calculator->add(3, 4); $this->assertEquals(7, $actual); }