/** * @dataProvider getRatios * * @param integer $ratio */ public function testScale($ratio) { $box = new Box(); $dw = $box->getWidth(); $dh = $box->getHeight(); $box->scale($ratio); $this->assertEquals(round($dw * $ratio), $box->getWidth()); $this->assertEquals(round($dh * $ratio), $box->getHeight()); }