setAccessible(true); $this->assertEquals('Metadata\Tests\Fixtures\TestObject', $metadata->class); $this->assertEquals('foo', $metadata->name); $this->assertEquals($expectedReflector, $metadata->reflection); } public function testSerializeUnserialize() { $metadata = new PropertyMetadata('Metadata\Tests\Fixtures\TestObject', 'foo'); $this->assertEquals($metadata, unserialize(serialize($metadata))); } public function testSetGetValue() { $obj = new TestObject(); $metadata = new PropertyMetadata('Metadata\Tests\Fixtures\TestObject', 'foo'); $this->assertNull($metadata->getValue($obj)); $metadata->setValue($obj, 'foo'); $this->assertEquals('foo', $metadata->getValue($obj)); } }