MediaWiki  REL1_24
ExtensionsTestSuite.php
Go to the documentation of this file.
00001 <?php
00008 class ExtensionsTestSuite extends PHPUnit_Framework_TestSuite {
00009     public function __construct() {
00010         parent::__construct();
00011         $files = array();
00012         wfRunHooks( 'UnitTestsList', array( &$files ) );
00013         foreach ( $files as $file ) {
00014             $this->addTestFile( $file );
00015         }
00016         if ( !count( $files ) ) {
00017             $this->addTest( new DummyExtensionsTest( 'testNothing' ) );
00018         }
00019     }
00020 
00021     public static function suite() {
00022         return new self;
00023     }
00024 }
00025 
00030 class DummyExtensionsTest extends MediaWikiTestCase {
00031     public function testNothing() {
00032         $this->assertTrue( true );
00033     }
00034 }