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