phpunit test get error: No tests found in class "xxx" , solution

if you get this error, like me use this:

use Symfony\Component\HttpFoundation\Request;

abstract class BaseControllerTestCase extends WebTestCase

if you do not add the abstract infront of it, it will consider this class contains some test case, but in fact this class is not used to test, just a extend of webtestcase. So to avoid this error, you need add abstract for this class. Anyway, this class will never generate an object.