/**
* @return list<array{0: class-string, 1: SerializationFixture}>
*/
public static function complexStructsProvider(): array
{ return [ [MediaDefinition::
class,
new TestBasicStruct()],
[UserDefinition::
class,
new TestBasicWithToManyRelationships()],
[MediaDefinition::
class,
new TestBasicWithToOneRelationship()],
[MediaFolderDefinition::
class,
new TestCollectionWithSelfReference()],
[MediaDefinition::
class,
new TestCollectionWithToOneRelationship()],
[RuleDefinition::
class,
new TestInternalFieldsAreFiltered()],
[UserDefinition::
class,
new TestMainResourceShouldNotBeInIncluded()],
];
} /**
* @dataProvider complexStructsProvider
*/
public function testEncodeComplexStructs(string
$definitionClass, SerializationFixture
$fixture): void
{