[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.119.119.119: ~ $
<?php

namespace JMS\Serializer\Tests\Metadata;

use JMS\Serializer\Metadata\PropertyMetadata;
use JMS\Serializer\Tests\Fixtures\SimpleObject;

class PropertyMetadataTest extends AbstractPropertyMetadataTest
{
    public function testSerialization()
    {
        $meta = new PropertyMetadata(SimpleObject::class, 'foo');
        $this->setNonDefaultMetadataValues($meta);
        $meta->getter = 'getFoo';
        $meta->setter = 'setFoo';
        $meta->readOnly = true;

        $restoredMeta = unserialize(serialize($meta));
        $this->assertEquals($meta, $restoredMeta);
    }

}

Filemanager

Name Type Size Permission Actions
Driver Folder 0755
AbstractPropertyMetadataTest.php File 1.14 KB 0644
ClassMetadataTest.php File 4.64 KB 0644
ExpressionPropertyMetadataTest.php File 472 B 0644
PropertyMetadataTest.php File 589 B 0644
StaticPropertyMetadataTest.php File 459 B 0644
VirtualPropertyMetadataTest.php File 550 B 0644