PHPUnit 4 - TestCase子类自动加载

I need to add some assertions and some default before/after methods to all my testcases.

According to the phpunit docs I should subclass PHPUnit_Framework_TestCase but when I do this I end up having to write a bootstrap file for phpunit.

Does PHPUnit autoloading allow me to simply drop it in my tests folder with a specific filename or is it really required to make a bootstrap file?

You should use autoload-dev in composer for autoloading custom classes. PHPUnit 4 as installed through composer doesn't support running outside of composer