From 53ede491f6aeea20d50599131b5505ee14aab924 Mon Sep 17 00:00:00 2001 From: Doug Wright Date: Sun, 5 Feb 2023 14:36:13 +0000 Subject: [PATCH] Add testcase for #227 --- tests/VolumePackerTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/VolumePackerTest.php b/tests/VolumePackerTest.php index b05b5745..a635094f 100644 --- a/tests/VolumePackerTest.php +++ b/tests/VolumePackerTest.php @@ -454,4 +454,18 @@ public function testIssue214(): void self::assertCount(4, $packedBox->getItems()); } } + + public function testIssue227(): void + { + $this->markTestSkipped(); + $box = new TestBox('Box', 160, 180, 160, 0, 160, 180, 160, 1000); + + $items = new ItemList(); + $items->insert(new TestItem('Item', 42, 100, 70, 1, Rotation::BestFit), 11); + + $volumePacker = new VolumePacker($box, $items); + $packedBox = $volumePacker->pack(); + + self::assertCount(4, $packedBox->getItems()); + } }