public function testConstructorExceptionNCountDiffers() { $A = [[1, 2, 3], [2, 3, 4, 5], [3, 4, 5]]; $this->setExpectedException('MathPHP\\Exception\\MatrixException'); $matrix = MatrixFactory::create($A); }