assertEquals('Metadata\Tests\Fixtures\TestObject', $metadata->class); $this->assertEquals('foo', $metadata->name); } public function testSerializeUnserialize() { $metadata = new PropertyMetadata('Metadata\Tests\Fixtures\TestObject', 'foo'); $this->assertEquals($metadata, unserialize(serialize($metadata))); } }