-
Notifications
You must be signed in to change notification settings - Fork 25
Document new Symfony assertions #202
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
Comments
Hi @ThomasLandauer , the vast majority of the added assertions call directly to Constraints defined in Symfony. For example:
while there are others that were translated to integrate with the module's service container. For example, module-symfony/src/Codeception/Module/Symfony/HttpClientAssertionsTrait.php Lines 17 to 19 in cad3c7a
While, I added comment blocks for each assertion, the code examples are pending for someone to send a PR and add them. I have updated the https://github.com/codeception/symfony-module-tests test project in all its branches to add tests to verify that these assertions work well. so the work around having that guidance available should be simple. |
The new assertions introduced in https://github.com/Codeception/module-symfony/releases/tag/3.5.0 should be added to the docs.
Did you copy them one by one, or did you find a way to call them directly (i.e. future Symfony assertions will automatically work too)?
Are these the ones we're talking about? https://symfony.com/doc/current/testing.html#testing-the-response-assertions
The text was updated successfully, but these errors were encountered: