Ejemplo n.º 1
0
 public function testAddition(MathTester $I)
 {
     $I->assertEquals(3, $this->calc->add(1, 2));
     $I->assertEquals(0, $this->calc->add(10, -10));
 }
Ejemplo n.º 2
0
 public function testAll()
 {
     $this->assertEquals(3, $this->calc->add(1, 2));
     $this->assertEquals(1, $this->calc->subtract(3, 2));
     $this->assertEquals(75, $this->calc->squareOfCircle(5));
 }