Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Giuseppe Elia Brandi
.a{fill-rule:evenodd;}techdegree seal-36
Giuseppe Elia Brandi
Front End Web Development Techdegree Graduate 69,630 Points

PHP Testing

Good Day,

I just wonder if somebody has been able to complete the new PHP Testing course by Chris Hartjes.

Have you been able to set up the enviroment for the tests?

What about the project files? Did you fork them from github?

I have personally found some challenges and I would love to pick on somebody's brain on how to complete this course.

Thank you for your cooperation.

Giuseppe Brandi

4 Answers

Steven Walters
Steven Walters
10,573 Points

I am going through this currently and I don't believe that the course is meant to be followed step by step.

If you are still trying to work through this give cloud9.io a try. You can clone the opencfp project from git into a cloud9 workspace and Run composer Install.

Not sure if that will get everything running but it will be a good start.

can you let us know what specific problems you encountered?

Giuseppe Elia Brandi
.a{fill-rule:evenodd;}techdegree seal-36
Giuseppe Elia Brandi
Front End Web Development Techdegree Graduate 69,630 Points

Thank you Shez azr for taking the time to check my post. This is my case:

  • I am using Windows 8.1
  • Installed composer by using the installer Composer-Setup.exe
  • Selected the path to php.exe which in my case is:


  • Noticed that even if the above path was selected the installation created the following path


  • Bin contains the following files composer, composer.bat, composer.phar

  • Created a composer.json file with the following content:

{ "name": "chartjes/opencfp", "require-dev": { "phpunit/phpunit": "3.7.*", "whatthejeff/nyancat-phpunit-resultprinter": "~1.2" } }

  • Launched Git Bash
  • run command composer
  • run command which composer
  • generated following path


  • run command php composer.phar install after choosing the following path: c/programdata/composersetup/bin

  • installed dependencies

  • vendor folder + composer.lock generated in the bin folder

  • vendor folder contains the following folders: bin, composer, phpunit, symfony, whatthejeff and file autoload.php

All looks ok until Chris runs the test. I created the files that Chris is showing in Vim (lesson Configuring your PHPUnit). Here I get lost because I do not understand where these 6 files should be located. Are they in phpunit folder? If I follow his path vendor/bin/phpunit I end up with the message that phpunit is not a folder and is in fact a file in my case. So it does not generate any test result.