public function testSerializeDeserialize() { $t1 = $this->transaction; $t2 = new Transaction(); $t2->fromJson($t1->toJson()); $this->assertEquals($t1, $t2); }