Test-driving complex features with Laravel & Pest

preview_player
Показать описание

👨‍💻 Learn Test-Driven Development with Laravel!

👨‍💻 Sign up to my newsletter and receive PHP, JS and Laravel news in a weekly-basis:

🎉 Party up:

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

Whenever I think the words "copy and paste" or hear another developer utter them, a big red alarm goes off in my mind 🚨So as soon as you said these fated words when going to make the ethereum asset, I was on alert and noticed you'd not set the ticker code to ETH and the name was still bitcoin. It's just as important for your tests to be DRY (Don't Repeat Yourself) as much as it is for your production code. Even when making a course, you fell foul of not applying this principle. So it was actually a good demonstration of why DRY is so important! Whenever thinking or hearing "copy and paste", it should be a trigger to make you refactor the code so you don't need to do that, e.g. write a helper method in the test to create an asset given its ticker code, name and price. It has the added benefit of making the test more readable ;)

theceilidhboy
Автор

Hi Mateus, what vscode extension are you using for laravel and php, thanks!

mavionogomuho
Автор

Good video, I really had fun watching it. 👍

JohnnyBigodes
Автор

Excellent video, loved it! May I ask about your VS Code setup? Like, what extensions you use to get labelled arguments?

udofiagodwin
Автор

Thanks for the awesome and informative video. Question tho; why do you like to use a static make() function instead of calling the class via the new keyword?

Niboros
Автор

Hey Mathew! Nice video. Can you help with your vscode setup for php laravel

rabotherabo