If you are developing a project in Laravel you are probably (should?) be using phpunit to execute tests. This tutorial will guide you through setting up a graphical representation of your test coverage so that you can see which lines of your logic are not being tested.
Continue reading “Laravel test coverage with php-code-coverage – Part 1”Tag: testing
Faking Carbon test dates
Carbon is one of the main datetime libraries used during Laravel development, and it provides many friendly functions for datetime manipulation and mathematics. But what if you want to test code which calls functions such as today()
or now()
?