This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
We don't always have the option to build things perfectly the first time, and we're always learning, so that perfect way is going to change. A great thing about PHPUnit is its wide adoption. Almost every framework comes shipped with PHPUnit or allows for easy integration. You can also add PHPUnit as a separate package for any object-oriented application.
composer.json
composer.json file.
{
"require-dev": {
"phpunit/phpunit": "^8.0",
"codedungeon/phpunit-result-printer": "^0.26.1"
}
}
phpunit.xml configuration
<phpunit
bootstrap="tests/bootstrap.php"
colors="true"
printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer"
>
</phpunit>
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up