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 trialemmagx
PHP Development Techdegree Graduate 18,240 Pointshaving trouble with the phpunit working with phpstorm. I am unable to follow along with the course, I always get errors
The Unit 6 Techdegree Course is using phpunit for testing. They are also using video studio code for it. I have been using phpstorm for this course and I have had no problems. When I follow along with the video, nothing is working. Does anyone know if there is a setting that I need to change in phpstorm to get this to work?
1 Answer
Jennifer Nordell
Treehouse TeacherFor anyone reading this, we got it worked out. In the videos, Alena is using a Mac. If you're using Windows, the file system and thus the paths are different. Instead of:
./vendor/bin/phpunit tests
You will need to type:
vendor\bin\phpunit tests
Hope this helps!
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherHi there, emmagx! I would be surprised if the problem were with PHPStorm. Mainly because those tests should run even if you didn't have PHPStorm installed. I'd be interested to know what kind of error messages you're getting. It'd also be helpful to know if you're using a Mac or Windows operating system.