| [ Index ] |
PHP Cross Reference of GlotPress |
[Summary view] [Print] [Text view]
1 <?php 2 require_once 'PHPUnit/Autoload.php'; 3 4 $tests_dir = dirname( __FILE__ ); 5 $old_cwd = getcwd(); 6 chdir( $tests_dir ); 7 8 for( $depth = 0; $depth <= 3; $depth++ ) { 9 foreach( glob( str_repeat( 'tests_*/', $depth ) . 'test_*.php' ) as $test_file ) { 10 include_once $test_file; 11 } 12 } 13 14 class all { 15 public static function suite() { 16 $suite = new PHPUnit_Framework_TestSuite(); 17 foreach( get_declared_classes() as $class ) { 18 if ( preg_match( '/^GP_Test_/', $class ) ) { 19 $suite->addTestSuite( $class ); 20 } 21 } 22 23 return $suite; 24 } 25 } 26 27 chdir( $old_cwd );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu May 24 03:59:35 2012 | Hosted by follow the white rabbit. |