Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Getting Started with PHP Unit Testing!
You have completed Getting Started with PHP Unit Testing!
Preview
When learning something new, it's a good idea to make sure you can get their example working before you move on to anything more complicated. This will also help us understand a little more how PHPUnit works.
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
This will also help us understand
a little more how PHPUnit works.
0:00
After installing PHPUnit with Composer,
0:03
the next thing we see is
an example of a Composer file.
0:06
Since we're going to be
testing an actual class,
0:10
PHPUnit needs to know where
that class is located.
0:13
We can use Composer's autoload feature for
this.
0:18
We'll copy this autoload and
then we'll go into Visual Studio.
0:21
Open composer.json, And add the autoload.
0:25
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