From 8199856903a71d796f67a423e436bffc9130cc82 Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Fri, 22 Dec 2023 11:16:07 +0000 Subject: [PATCH] Add testcase for #590 --- tests/VolumePackerTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/VolumePackerTest.php b/tests/VolumePackerTest.php index c5c683a..c432fd6 100644 --- a/tests/VolumePackerTest.php +++ b/tests/VolumePackerTest.php @@ -666,4 +666,18 @@ public function testIssue583(): void self::assertCount(2, $packedBox->items); } + + public function testIssue590(): void + { + $this->markTestSkipped(); + $box = new TestBox('Box', 420, 420, 260, 0, 420, 420, 260, 0); + + $itemList = new ItemList(); + $itemList->insert(new TestItem('Item', 167, 132, 55, 0, Rotation::BestFit), 29); + + $packer = new VolumePacker($box, $itemList); + $packedBox = $packer->pack(); + + self::assertCount(29, $packedBox->items); + } }