Пример #1
0
 public function testArea()
 {
     $radius = 90;
     $circle = new Shapes\Circle($radius);
     $this->assertEquals(pi() * pow($radius, 2), $circle->area());
 }
Пример #2
0
 public function testGetCircleArea()
 {
     $circle = new Shapes\Circle(90);
     $area = $circle->area($circle);
     $this->assertEquals(29.803764797388, $area);
 }
Пример #3
0
 public function testArea()
 {
     $circle = new Shapes\Circle($this->radius);
     $area = pi() * pow($this->radius, 2);
     $this->assertEquals($circle->area(), $area);
 }
Пример #4
0
 public function testCircleArea()
 {
     $circle = new Shapes\Circle(3);
     $this->assertEquals(28.274333882308, $circle->area());
 }