1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Metadata; 6 7use JMS\Serializer\Metadata\ExpressionPropertyMetadata; 8 9class ExpressionPropertyMetadataTest extends AbstractPropertyMetadataTest 10{ 11 public function testSerialization() 12 { 13 $meta = new ExpressionPropertyMetadata('stdClass', 'foo', 'fooExpr'); 14 $this->setNonDefaultMetadataValues($meta); 15 16 $restoredMeta = unserialize(serialize($meta)); 17 $this->assertEquals($meta, $restoredMeta); 18 } 19} 20