Skip to content

Commit

Permalink
Add testcase for #334
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Feb 5, 2023
1 parent b2402d1 commit 285d093
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/PackerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 285d093

Please sign in to comment.