Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'PHPUnit/Framework.php';
- require_once './Calc.php';
- class CalcTest extends PHPUnit_Framework_TestCase
- {
- public function testAdd()
- {
- $calc = new Calc;
- $this->assertEquals(2, $calc->add(1, 1));
- }
- public function testAddThreeNumbers()
- {
- $calc = new Calc;
- $this->assertEquals(3, $calc->add(1, 1, 1));
- }
- }
Add Comment
Please, Sign In to add comment