public function testComputeReturnsCorrectResult() { $testArray = [[1, 2, 3], [3, 2, 1], [2, 1, 3]]; $three = TypeFactory::createInt(3); $four = TypeFactory::createInt(4); $five = TypeFactory::createInt(5); $expectedArray = [[$three, $four, $five], [$five, $four, $three], [$four, $three, $five]]; $object = new NumericMatrix($testArray); $computation = new \Chippyash\Math\Matrix\Computation\Add\Scalar(); $this->assertEquals($expectedArray, $object->compute($computation, 2)->toArray()); }