-
I was wondering if there are any examples of using phpunit with flightphp for feature testing? I have come from a Laravel background and as well as unit tests you can write feature tests which start up the laravel application (with a test specific config) so you can integration test your endpoints. I'm trying to replicate something like this but not sure how to get started. Thanks for any tips :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Are you asking about more Functional Unit tests like actually spinning up the framework, giving it a fake URL to route to, route to that controller, and do the thing in the controller? If so, you're in luck cause the entire FlightTest.php file does just that! |
Beta Was this translation helpful? Give feedback.
Are you asking about more Functional Unit tests like actually spinning up the framework, giving it a fake URL to route to, route to that controller, and do the thing in the controller?
If so, you're in luck cause the entire FlightTest.php file does just that!