for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use GGGGino\WarehousePath\Warehouse;
use PHPUnit\Framework\TestCase;
final class WarehouseMatrixTest extends TestCase
{
/**
* Super simple warehouse representation
*
* @return array
*/
public static function getSampleData()
return array(
array(array('weight' => 2), array('weight' => 1), array('weight' => 100), array('weight' => 1), array('weight' => 2), array('weight' => 1)),
array(array('weight' => 2), array('weight' => 2), array('weight' => 2), array('weight' => 2), array('weight' => 2), array('weight' => 1))
);
}
public function testWarehouseConstructor(): void
$testMatrix = Warehouse::createFromMatrix(self::getSampleData());
$this->assertInstanceOf(Warehouse::class, $testMatrix);