Exemplo n.º 1
0
 public function testArea()
 {
     $radius = 90;
     $circle = new Shapes\Circle($radius);
     $this->assertEquals(pi() * pow($radius, 2), $circle->area());
 }
Exemplo n.º 2
0
 public function testGetCircleArea()
 {
     $circle = new Shapes\Circle(90);
     $area = $circle->area($circle);
     $this->assertEquals(29.803764797388, $area);
 }
Exemplo n.º 3
0
 public function testArea()
 {
     $circle = new Shapes\Circle($this->radius);
     $area = pi() * pow($this->radius, 2);
     $this->assertEquals($circle->area(), $area);
 }
Exemplo n.º 4
0
 public function testCircleArea()
 {
     $circle = new Shapes\Circle(3);
     $this->assertEquals(28.274333882308, $circle->area());
 }