public function testJsonSerialize(array $A, string $json) { $A = MatrixFactory::create($A); $this->assertEquals($json, json_encode($A)); }