Beispiel #1
0
 public function testFillMatrix()
 {
     $expected = array(array(7, 7, 7), array(7, 7, 7), array(7, 7, 7));
     $this->assertEquals($expected, MatrixFactory::fillMatrix(7, 3)->getArray());
     //
     $expected = array(array(11, 11, 11), array(11, 11, 11));
     $this->assertEquals($expected, MatrixFactory::fillMatrix(11, 2, 3)->getArray());
 }