public function testShouldIncreaseBox() { $box = new Box(10, 20); $this->assertEquals(new Box(15, 25), $box->increase(5)); }
/** * {@inheritdoc} */ public function increase($size) { $box = $this->box->increase($size); return new self($box->getWidth(), $box->getHeight()); }