From 285d0935d61adebadc50fd71c251494fdb635781 Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Sun, 5 Feb 2023 14:20:36 +0000 Subject: [PATCH] Add testcase for #334 --- tests/PackerTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/PackerTest.php b/tests/PackerTest.php index 32af65ce..dd73f944 100644 --- a/tests/PackerTest.php +++ b/tests/PackerTest.php @@ -1118,6 +1118,18 @@ public function testIssue182B(): void self::assertCount(62, $packer->getUnpackedItems()); } + public function testIssue334(): void + { + $this->markTestSkipped(); + $packer = new Packer(); + $packer->addBox(new TestBox('Medium box', 600, 400, 400, 5000, 600, 400, 400, 18000000)); + $packer->addItem(new TestItem('TEST001', 130, 130, 240, 250000, Rotation::BestFit), 18); + + $packedBoxes = $packer->pack(); + + self::assertCount(1, $packedBoxes); + } + public function testCustomPackedBoxSorterIsUsed(): void { PackedBoxByReferenceSorter::$reference = 'Box #1';