public static function suite() { $tests = self::getTests(__FILE__); $suite = new TheCodeTrainJsLinterTestSuite(); foreach ($tests as $test) { $suite->addTestSuite($test); } return $suite; }
* @license Creative Commons Attribution-Share Alike 3.0 Unported * http://creativecommons.org/licenses/by-sa/3.0/ **/ class TheCodeTrainJsLinterTestCaseTestSuite extends TheCodeTrainBaseTestSuite { public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $tests = self::getTests(__FILE__); $suite = new TheCodeTrainJsLinterTestCaseTestSuite(); foreach ($tests as $test) { $suite->addTestSuite($test); } return $suite; } protected function setUp() { } protected function tearDown() { } } class ConcreteJsLinterTestCase extends TheCodeTrainJsLinterTestCase { } if (PHPUnit_MAIN_METHOD == 'TheCodeTrainJsLinterTestCaseTestSuite::main') { TheCodeTrainJsLinterTestSuite::main(); }