8000 [PropertyInfo]  add tests for TypeInfo types by xabbuh · Pull Request #57696 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[PropertyInfo]  add tests for TypeInfo types #57696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add tests for TypeInfo types
This change ensures that the tests that have been added in #57617 are
also applied when the types from the TypeInfo component are used instead
of the Type class that is built into the PropertyInfo component.
  • Loading branch information
xabbuh committed Jul 9, 2024
commit 93d32099aa6fdc4d681835f7c29f927bd063306b
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ public static function typeProvider(): iterable
yield ['arrayOfMixed', Type::dict(Type::mixed()), null, null];
yield ['listOfStrings', Type::list(Type::string()), null, null];
yield ['self', Type::object(Dummy::class), null, null];
yield ['collectionAsObject', Type::collection(Type::object(DummyCollection::class), Type::string(), Type::int()), null, null];
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ public static function typesProvider(): iterable
yield ['self', Type::object(Dummy::class)];
yield ['rootDummyItems', Type::list(Type::object(RootDummyItem::class))];
yield ['rootDummyItem', Type::object(RootDummyItem::class)];
yield ['collectionAsObject', Type::collection(Type::object(DummyCollection::class), Type::string(), Type::int())];
}

public function testParamTagTypeIsOmitted()
Expand Down
Loading
0