/**
  * @dataProvider provider_ClosureType
  */
 public function testSerialize_ClosureType($in)
 {
     $value = PhpSerializer::phpUnserialize(PhpSerializer::phpSerialize($in));
     $this->assertEquals($value(1), (object) ['prop' => 1]);
 }
 public function serialize($value)
 {
     $this->assertEquals($value, PhpSerializer::phpUnserialize(PhpSerializer::phpSerialize($value)));
 }