/** * @test * @dataProvider paperData * @param Present[] $presents * @param int $expected */ public function estimatesPaperOnCollection(array $presents, $expected) { $this->assertSame($expected, WrappingMaterialsEstimator::estimatePaperForCollection($presents)); }
/** * @inheritdoc */ public function part1() { return strval(WrappingMaterialsEstimator::estimatePaperForCollection($this->getPresentsFromInput())); }