Exemplo n.º 1
0
 public function testSimpleAddition()
 {
     $actualResult = AwesomeCalculator::add(2, 5);
     $expectedResult = 7;
     $this->assertEquals($expectedResult, $actualResult);
 }
 public function testICantAddRealGood()
 {
     $actualResult = AwesomeCalculator::add(2, 2);
     $expectedResult = 5;
     $this->assertEquals($expectedResult, $actualResult, 'This test fails because I am bad at math.');
 }