We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc7f980 commit 7f5516cCopy full SHA for 7f5516c
tests/MatrixTest.php
@@ -254,6 +254,21 @@ public function testMultiplyMatrix()
254
static::assertEquals(154, $multiplied->get(1, 1));
255
}
256
257
+ public function testMultiplyMatrixWrongSizes()
258
+ {
259
+ $matrix1 = $this->buildMatrix();
260
+
261
+ $matrix2 = new Matrix([
262
+ [4, 2, 6],
263
+ [1, 7, 3],
264
+ [7, 3, 2],
265
+ ]);
266
267
+ static::expectException(MatrixException::class);
268
269
+ $matrix1->multiplyMatrix($matrix2);
270
+ }
271
272
public function testMultiplyScalar()
273
{
274
$matrix = new Matrix([
0 commit comments