1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Metadata\Driver;
6
7use JMS\Serializer\Metadata\ClassMetadata;
8use JMS\Serializer\Metadata\Driver\NullDriver;
9use PHPUnit\Framework\TestCase;
10
11class NullDriverTest extends TestCase
12{
13    public function testReturnsValidMetadata()
14    {
15        $driver = new NullDriver();
16
17        $metadata = $driver->loadMetadataForClass(new \ReflectionClass('stdClass'));
18
19        self::assertInstanceOf(ClassMetadata::class, $metadata);
20        self::assertCount(0, $metadata->propertyMetadata);
21    }
22}
23