public function testJsonSerializable(array $A, string $json) { $A = new Vector($A); $this->assertEquals($json, json_encode($A)); }