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 e5290e1 commit fe88247Copy full SHA for fe88247
tests/MatrixTest.php
@@ -134,6 +134,21 @@ public function testAddMatrix()
134
static::assertEquals(11, $added->get(2, 2));
135
}
136
137
+ public function testAddMatrixWrongSizes()
138
+ {
139
+ $matrix1 = $this->buildMatrix();
140
+
141
+ $matrix2 = new Matrix([
142
+ [4, 2, 6],
143
+ [1, 7, 3],
144
+ [7, 3, 2],
145
+ ]);
146
147
+ static::expectException(MatrixException::class);
148
149
+ $matrix1->addMatrix($matrix2);
150
+ }
151
152
public function testAddScalar()
153
{
154
$matrix = new Matrix([
0 commit comments