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

PHP PHP Testing Your First Tests Building your test cases

error message when running test: "No Tests Found In class 'PigLatinTest'"

As per the title, I've tried running these tests in terminal and keep getting the same error message.

My two files I have typed out exactly what is shown on the screen and checked them repeatedly and can't find anything wrong with them.

I managed to get the first test failing as per the video, but the one which should pass just doesn't work.

I'm growing increasingly frustrated with this course.

Most of the other courses on Treehouse the teacher walks you through step by step of creating all your files and writing your code, but this just seems to be a teacher talking you through files he has already created/downloaded with no explanation as to where they are stored or reference to heirarchical structure.

I really wan't to complete this track, but it is sucking my will to live!!! :-(

2 Answers

Eric Schroeder
Eric Schroeder
19,894 Points

I was getting the same thing and found this. In his code he had a commented out '@test' in the beginning of the class PigLatinTest. Apparently this is required or you can change the name of the test function to start with 'test'. Either of these worked for me.

Voila!!...will to live restored!

Voila indeed. Thank you for your help! :-)