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