PHPunit can't find tests

You need to provide the suffix attribute:

<directory suffix="Test.php">...</directory> 

Read the documentation for more information.


I ran into this same problem. This post is a little old but thought I would share what I figured out from reading this page and looking into it more.

The files in the test directory did not end with *Test.php When I changed them to that format it worked. That is awesome that you can define your own naming convention by defining the suffix in the xml.

Hope that helps anyone who might read this and still be a little confused.