From 7737cfc315a7da4770f2615dae651dbc4714ad0d Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Sun, 5 Feb 2023 16:38:53 +0000 Subject: [PATCH] Add testcase for #272 --- tests/VolumePackerTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/VolumePackerTest.php b/tests/VolumePackerTest.php index 16da0bb2..e10abbaf 100644 --- a/tests/VolumePackerTest.php +++ b/tests/VolumePackerTest.php @@ -549,4 +549,18 @@ public function testIssue268(): void self::assertCount(60, $packedBox->getItems()); } } + + public function testIssue272(): void + { + $this->markTestSkipped(); + $box = new TestBox('Box', 725, 725, 650, 0, 725, 725, 650, 100000); + + $items = new ItemList(); + $items->insert(new TestItem('Item', 260, 260, 460, 0, Rotation::BestFit), 6); + + $volumePacker = new VolumePacker($box, $items); + $packedBox = $volumePacker->pack(); + + self::assertCount(6, $packedBox->getItems()); + } }