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!

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 Standards and Best Practices Creating Distributable OOP Packages Creating Components

Alex Howes
Alex Howes
13,424 Points

Standards and Best Practices Unit Testing Video

Hi, There doesn't seem to be a Unit Testing video after Creating Components on the PHP Standards and Best Practices Course.

The quiz however has questions based on Unit Testing.

Any way of getting the video up?

Cheers, Alex

2 Answers

There's a new testing course. Was unit testing not explained a bit in the sequence of videos leading up to this test? If not, paste the question you're not sure about.

Alex Howes
Alex Howes
13,424 Points

I don't particularly need any help with any questions on the test, just pointing out that there seems to be a video missing as the previous video explains that there will be a small intro video on unit testing and the test after the video 'creating components' has a quiz on it.

Here are the two questions in the quiz that are not covered by the video:

If PHPUnit is installed via Composer, how would you run the tests that live in the “test” directory?

If writing a test for a PSR-4 compliant PHP file called ./src/Manager.php, what would be a valid file name for the PHP Unit test?

Rafael Schwemmer
Rafael Schwemmer
6,108 Points

I agree with Alex Howes. Two of the four questions in the quiz were not covered in the video. It felt like a video was missing.

Daisy Sajnog
Daisy Sajnog
Courses Plus Student 2,535 Points

These two questions were not covered in the video preceding it:

If writing a test for a PSR-4 compliant PHP file called ./src/Manager.php, what would be a valid file name for the PHP Unit test?

If PHPUnit is installed via Composer, how would you run the tests that live in the “test” directory?

Should this test come after the next video?