Guest User

Untitled

a guest
May 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. require_once 'PHPUnit/Framework.php';
  3. require_once './Calc.php';
  4.  
  5. class CalcTest extends PHPUnit_Framework_TestCase
  6. {
  7. public function testAdd()
  8. {
  9. $calc = new Calc;
  10. $this->assertEquals(2, $calc->add(1, 1));
  11. }
  12.  
  13. public function testAddThreeNumbers()
  14. {
  15. $calc = new Calc;
  16. $this->assertEquals(3, $calc->add(1, 1, 1));
  17. }
  18. }
Add Comment
Please, Sign In to add comment