amitsolanki24_'s avatar

Write a single test case to verify all methods has return type

How can I write a single test case to verify all methods has return type and parameters type (type hinting) in laravel.

I think by running this type of test all developers working on a same project follow same code structure.

0 likes
4 replies
Tray2's avatar

@amitsolanki24_ Pest is a testing framework/wrapper for phpunit, and you require it as dev, it will not reach your production. and like @martinbean says you can use a linter for this as well.

1 like

Please or to participate in this conversation.