Recent posts with #testing

Laravel devs, tired of random strings messing up your tests? 🎲

Take control with Str::createRandomStringsUsing() for consistent results. πŸ“

When you're ready, just flip back to normal with Str::createRandomStringsNormally(). ♻️

Testing's now a cakewalk! 🀞 #laravel #testing
image

1 β€’ β€’

139

β€’

πŸ•’ Master Time-Dependent Testing in Laravel

Ever struggled to test code that relies on timestamps or scheduled events?

With freezeTime, you can control the clock and write consistent, reliable testsβ€”no more flaky results due to real-time changes!

#Laravel #PHP #Testing
image

β€’ β€’

155

β€’

πŸ› οΈ Laravel Tip: Testing API Exceptions

Mock API failures to ensure your app handles exceptions gracefully! With a simulated exception, you can verify error handling without real network calls. πŸš«πŸ’‘

Perfect for validating error handling under adverse conditions. 🀞

#Laravel #Testing #PHP
image

1 β€’ β€’

105

β€’