addTestFile( $file ); } if ( !count( $files ) ) { $this->addTest( new DummyExtensionsTest( 'testNothing' ) ); } } public static function suite() { return new self; } } /** * Needed to avoid warnings like 'No tests found in class "ExtensionsTestSuite".' * when no extensions with tests are used. */ class DummyExtensionsTest extends PHPUnit_Framework_TestCase { public function testNothing() { } }