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