From 186807f35a62a184c441518db93fa8bf3bbd5d77 Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Sun, 5 Feb 2023 16:58:25 +0000 Subject: [PATCH] Add testcase for #366 --- tests/VolumePackerTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/VolumePackerTest.php b/tests/VolumePackerTest.php index ce01127d..ef730ce9 100644 --- a/tests/VolumePackerTest.php +++ b/tests/VolumePackerTest.php @@ -579,4 +579,18 @@ public function testIssue348(): void self::assertCount(4, $packedBox->getItems()); } + + public function testIssue366(): void + { + $this->markTestSkipped(); + $box = new TestBox('Pallet', 250, 160, 1, 0, 250, 160, 1, 100); + + $items = new ItemList(); + $items->insert(new TestItem('Product1', 30, 70, 1, 1, Rotation::BestFit), 18); + + $volumePacker = new VolumePacker($box, $items); + $packedBox = $volumePacker->pack(); + + self::assertCount(18, $packedBox->getItems()); + } }