Skip to content

Conversation

@MrMeshok
Copy link
Contributor

@MrMeshok MrMeshok commented Oct 3, 2024

Fixes #191

@MrMeshok MrMeshok marked this pull request as draft October 3, 2024 12:15
@MrMeshok MrMeshok marked this pull request as ready for review October 3, 2024 13:12
Copy link
Member

@Korbeil Korbeil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, could you add a test to validate the test ? 🙏

@MrMeshok
Copy link
Contributor Author

MrMeshok commented Oct 4, 2024

It's already should be tested, because class Bar is used in generic MapTo/MapFrom tests

@Korbeil
Copy link
Member

Korbeil commented Oct 5, 2024

I mean, it should fail if it is tested, you didn't change a test in this pull request and clearly it didn't failed before.

@MrMeshok
Copy link
Contributor Author

MrMeshok commented Oct 5, 2024

I changed tests/Fixtures/MapTo/Bar.php now transformC and transformDStatic requires source and context. Also I added transformer: 'htmlspecialchars' to $form property so usage of internal functions tested too. Without fix in CallableTransformer test will fail with this additions to Bar

Copy link
Member

@Korbeil Korbeil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the test and your contribution! @MrMeshok 🙏

@Korbeil Korbeil merged commit 9d7523d into jolicode:main Oct 5, 2024
@MrMeshok MrMeshok deleted the fix-191 branch October 5, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Source and context parameters not passed to transformer ?

2 participants