/** * @dataProvider getDimensionsAndTargets * * @param integer $width * @param integer $height * @param integer $targetWidth * @param integer $targetHeight */ public function testShouldResizeToTargetWidthAndHeight($width, $height, $targetWidth, $targetHeight) { $box = new Box($width, $height); $expected = new Box($targetWidth, $targetHeight); $this->assertEquals($expected, $box->widen($targetWidth)); $this->assertEquals($expected, $box->heighten($targetHeight)); }