write a function that returns the sum of two numbers.
if input is 1 and 1 -> return 2
if input is 5 and 10 ->return 15
function sum($a ,$b) {
return $a + $b;
}
class SumTest extends TestCase
{
public function testTheSumOfTwoNumbers() {
$this->assertEquals(9,sum(4,5));
$this->assertEquals(20,sum(9,11));
$this->assertEquals(111,sum(99.5,11.5));
$this->assertEquals(15,sum(-4,19));
$this->assertEquals(111,sum(99.5,11.5));
}
}