コード例 #1
0
ファイル: BoxTest.php プロジェクト: nicodmf/Imagine
 /**
  * @dataProvider getSizesAndSquares
  *
  * @param integer $width
  * @param integer $height
  * @param integer $square
  */
 public function testShouldCalculateSquare($width, $height, $square)
 {
     $box = new Box($width, $height);
     $this->assertEquals($square, $box->square());
 }