AllTests.php 375 B

123456789101112131415161718192021222324
  1. <?php
  2. foreach (glob('*Test.php') as $file)
  3. {
  4. if ($file != 'AllValidationsTest.php')
  5. require $file;
  6. }
  7. class AllTests
  8. {
  9. public static function suite()
  10. {
  11. $suite = new PHPUnit_Framework_TestSuite('PHPUnit');
  12. foreach (glob('*Test.php') as $file)
  13. {
  14. if ($file != 'AllValidationsTest.php')
  15. $suite->addTestSuite(substr($file,0,-4));
  16. }
  17. return $suite;
  18. }
  19. }
  20. ?>