/** * @dataProvider serializationProvider */ public function testUnserialize($json, $expected) { $id = new PropertyId('P1'); $id->unserialize($json); $this->assertSame($expected, $id->getSerialization()); }