Discover and read the best of Twitter Threads about #PHPUnit

Most recents (1)

๐ŸŒถ๏ธ #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.
Read 4 tweets

Related hashtags

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.00/month or $30.00/year) and get exclusive features!

Become Premium

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

Donate via Paypal Become our Patreon

Thank you for your support!