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
Writing for the Test
This video doesn't have any notes.
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
We were expecting esttay but
instead, we just got test.
0:00
Look at the code to convert our word.
0:07
We'll start by getting the first letter.
0:11
Word starting at zero and
giving us the first character.
0:16
Then we'll want to start a new word.
0:23
This is going to equal the old word,
starting after the first character.
0:29
Now, we can add the first letter
to the end of our new word,
0:37
And also the string ay.
0:45
Now, instead of $word,
we want to return $newWord.
0:49
And let's run our test again.
0:55
Great, this time it passes.
1:00
This doesn't cover all cases for
PigLatin conversion, so
1:03
let's add these additional
features starting with our tests.
1:08
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