From b7b87a893f80b9d2d5e269bdcadf0ca6ddabe96a Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Sun, 5 May 2024 18:24:10 +0100 Subject: [PATCH] Add testcase for #609 --- tests/VolumePackerTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/VolumePackerTest.php b/tests/VolumePackerTest.php index c432fd6..7d33e9f 100644 --- a/tests/VolumePackerTest.php +++ b/tests/VolumePackerTest.php @@ -680,4 +680,19 @@ public function testIssue590(): void self::assertCount(29, $packedBox->items); } + + public function testIssue609(): void + { + $this->markTestSkipped(); + $box = new TestBox('Le petite box', 340, 350, 30, 80, 220, 310, 26, 2000); + + $itemList = new ItemList(); + $itemList->insert(new TestItem('CD', 130, 140, 10, 100, Rotation::BestFit), 4); + $itemList->insert(new TestItem('Cassette', 70, 110, 17, 100, Rotation::BestFit), 2); + + $packer = new VolumePacker($box, $itemList); + $packedBox = $packer->pack(); + + self::assertCount(6, $packedBox->items); + } }