- Fix Routes extractor not providing proper naming for the test argument
- Add the
SMOKE_TESTING_ROUTES_METHODS
environment variable to disable the deprecation message
- Project seems quite stable, let's roll for v1.0.0
- BC breaks: drop some version compatibilities for maintenance reasons:
- Dropped support for PHP < 8.0
- Dropped support for Symfony < 6.1
- Made the project compatible with Symfony 7.0 and PHP 8.2
- Refactored CI and fixture app to reflect these new requirements
- Remove a Symfony 6.3 type-based deprecation
- Updated phpunit 10 config
- Make the lib compatible with PHPUnit 10 with no regression in the codebase.
- Use
.gitattributes
to remove useless files from Composer package (@ker0x #6)
- Create a Maker command to generate all routes tests in one single class
- Make it usable with PHP 7.4
- Add Bundle class and update package type to symfony-bundle to automate the bundle setup with Flex
- Document new features in the readme
- Make the project compatible from PHP 8.0 up to 8.2, and from Symfony 5.4 up to 6.2
- Fix "Content-Type" header #4
- Fix JSON header compatibility with charset parameter.
- Add ability to execute an action before making the actual HTTP request via
FunctionalTestData->withCallbackBeforeRequest()
method.
- Fix a bug calling "expectation callables" twice
- Add support for expected HTTP headers in the Response
- Add support server parameters injection at request-time to the Client. Note: this part is experimental and would need wide testing in different types of Symfony apps before being functionally stable.
- Breaking change: Make
SmokeTestStaticRoutes
an abstract class to ease customizing it with hooks. - Create
SmokeTestStaticRoutes::beforeRequest(...)
to be able to hook before the HTTP request is made to the backend. - Create
SmokeTestStaticRoutes::afterRequest(...)
to be able to hook jut after the HTTP request is made, and before the assertion is made. - Create
SmokeTestStaticRoutes::afterAssertion(...)
to be able to add more assertions right after an HTTP request is made to the backend.
- Breaking change: Rename
SmokeTestAllRoutes
toSmokeTestStaticRoutes
(issue #3 by @stof). - Make
SmokeTestStaticRoutes
trait run a smoke test on all static routes plus the routes for which the defaults are enough to generate an url. - Use
$router->generateUrl()
instead of$route->getPath()
to get the URL of the route to test. - Add more tests (more coming, aiming maximum coverage of all features).
- Completely refactor project's testing setup. Previous one was based on Symfony Process and was extra slow, new one is based on just instantiating tests and running them directly, and it's blazing fast.
- Fixed an issue where it wasn't impossible to use
FunctionalSmokeTester::runFunctionalTest()
multiple times. - Updated dependencies in
composer.json
to better fit with what's really needed by the package.
- Add support for expectation callables
- Add support for JSON response expectation
- Add support for JSON parts expectation, allowing you to assert that some parts (of any nesting level) of the response JSON to match your expectations
Initial version