Bilal Haidar Profile picture
Aug 2 โ€ข 4 tweets โ€ข 2 min read
๐ŸŒถ๏ธ #Laravel Tip: When testing with #PHPUnit, include phpunit.xml and phpunit.xml.dist files. PHPUnit first tries to use phpunit.xml; if that file doesn't exist, it tries to use phpunit.xml.dist instead.

PHPUnit only uses one of these files, never both.

๐Ÿงต Thread ๐Ÿงต ๐Ÿ‘‡
1๏ธโƒฃ

๐ŸŒŸ ๐—•๐—ฒ๐˜€๐˜ ๐—ฃ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ฐ๐—ฒ๐˜€ ๐ŸŒŸ

1๏ธโƒฃ Include phpunit.xml.dist file in your Git repo
2๏ธโƒฃ Add phpunit.xml file to your .gitignore file
2๏ธโƒฃ

๐ŸŒŸ ๐—›๐—ผ๐˜„ ๐—ฃ๐—›๐—ฃ๐—จ๐—ป๐—ถ๐˜ ๐˜„๐—ผ๐—ฟ๐—ธ๐˜€ ๐ŸŒŸ

PHPUnit will use phpunit.xml.dist, but if you want to run a modified set of the tests, they can copy your phpunit.xml.dist file into phpunit.xml and then modify phpunit.xml.

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with Bilal Haidar

Bilal Haidar Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @bhaidar

Jul 26
๐ŸŒถ #Laravel Tip: If you don't like magic (like me) & want to dig more into understanding things, this thread is for you!

โœด๏ธ ๐—›๐—ผ๐˜„ ๐—จ๐˜€๐—ฒ๐—ฟ ๐—ฅ๐—ฒ๐—ด๐—ถ๐˜€๐˜๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป & ๐—ฉ๐—ฒ๐—ฟ๐—ถ๐—ณ๐˜† ๐—˜๐—บ๐—ฎ๐—ถ๐—น ๐˜„๐—ผ๐—ฟ๐—ธ ๐—ถ๐—ป ๐—Ÿ๐—ฎ๐—ฟ๐—ฎ๐˜ƒ๐—ฒ๐—น (๐—•๐—ฟ๐—ฒ๐—ฒ๐˜‡๐—ฒ)

Let's start ๐Ÿ’ช

๐Ÿงต Thread ๐Ÿงต ๐Ÿ‘‡
2/8 โœจโœจ Prerequisites โœจโœจ

๐Ÿ“ Create a new Laravel app
๐Ÿ“ Install the Breeze package. In my case, I installed the Breeze package with the option of --๐—ถ๐—ป๐—ฒ๐—ฟ๐˜๐—ถ๐—ฎ
3/8 โœจโœจ Register a new User โœจโœจ

๐Ÿ“ Implement the MustVerifyEmail on the User model
๐Ÿ“ Register a new User
๐Ÿ“ The RegisteredUserController::store dispatches the Registered event
๐Ÿ“ Event listener, SendEmailVerificationNotification sends User an email to verify
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(