示例#1
0
 /**
  * @dataProvider providerArea
  * @param Shape $shape
  * @param mixed $expectedArea
  */
 public function testArea(Shape $shape, $expectedArea)
 {
     $this->assertEquals($expectedArea, round($shape->getArea(), 2));
 }