Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

testy's avatar

What for Test-Frameworks for Laravel 5.1?

What do you guys use for Test-Frameworks for Laravel 5.1 (other then PHPUnit)? Is Codeception good (or is the core features are includet in Laravel 5.1?)

Has anyone a good Folder Structure for Testing?

0 likes
1 reply
bobbybouwmann's avatar

I mainly use phpunit, so that is something you can use! For integration tests you can use the build-in testing framework from Laravel.

For the directory structure it's better to mimic the directory structure of your application

// App/Http/Controllers/MyController.php

// tests/Controllers/MyController.php

If you want to know more about testing take a look at this: https://laracasts.com/skills/testing

Please or to participate in this conversation.