Skip to content

Commit

Permalink
Add test for issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed May 31, 2014
1 parent d86c7fd commit 851b59f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/PackerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,20 @@ public function testIssue3() {
self::assertEquals(1, $packedBoxes->count());
}

public function testIssue6() {

$packer = new Packer();
$packer->addBox(new TestBox('Package 22', 675, 360, 210, 2, 670, 355, 204, 1000));
$packer->addBox(new TestBox('Package 2', 330, 130, 102, 2, 335, 135, 107, 1000));
$packer->addItem(new TestItem('Item 3', 355.6, 335.28, 127, 1.5));
$packer->addItem(new TestItem('Item 7', 330.2, 127, 101.6, 1));
$packer->addItem(new TestItem('Item 7', 330.2, 127, 101.6, 1));
$packedBoxes = $packer->pack();

self::assertEquals(2, $packedBoxes->count());

}


/**
* @dataProvider getSamples
Expand Down

0 comments on commit 851b59f

Please sign in to comment.