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