<?php require 'vendor/autoload.php'; /* * New matrix */ $matrix = new MH_matrix(7, 5); /* * process the matrix */ $matrix->processMatrix(); /* * print out the representation of the matrix */ $matrix->printTable(); echo "<hr />"; /* * print the result */ echo sprintf("There are %s different paths", $matrix->result());
public function testMatrix2x6() { $matrix6 = new MH_matrix(2, 6); //6 $this->assertEquals(6, $matrix6->processMatrix()->result()); }