From e3fbfe0c6012f87c9c57935ccf9989faa6fe5d20 Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 1 Oct 2010 22:59:57 +0000 Subject: [PATCH] Remove suite included twice in suite.xml Rename MediaWikiParserTestSuite class to MediaWikiParserTest. This way, it matches its file basename, which makes phpunit not to consider, when loading MediaWikiParserText.php, the ParserUnitTest (coming from ParserHelpers.php require) as a standalone test class, which is what was producing the warning: No tests found in class "ParserUnitTest". All tests pass for me now: Tests: 752, Assertions: 3706, Incomplete: 2. Incomplete tests are testApiListPages() and testWatchRollback() --- .../tests/phpunit/includes/parser/MediaWikiParserTest.php | 2 +- maintenance/tests/phpunit/suite.xml | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/maintenance/tests/phpunit/includes/parser/MediaWikiParserTest.php b/maintenance/tests/phpunit/includes/parser/MediaWikiParserTest.php index 49d13367e5..4b0c259e8a 100644 --- a/maintenance/tests/phpunit/includes/parser/MediaWikiParserTest.php +++ b/maintenance/tests/phpunit/includes/parser/MediaWikiParserTest.php @@ -2,7 +2,7 @@ require_once( dirname( __FILE__ ) . '/ParserHelpers.php' ); -class MediaWikiParserTestSuite extends PHPUnit_Framework_TestSuite { +class MediaWikiParserTest extends PHPUnit_Framework_TestSuite { private $count; public $backend; diff --git a/maintenance/tests/phpunit/suite.xml b/maintenance/tests/phpunit/suite.xml index 7a3b90e84a..fdda2b88bc 100644 --- a/maintenance/tests/phpunit/suite.xml +++ b/maintenance/tests/phpunit/suite.xml @@ -8,9 +8,6 @@ convertWarningsToExceptions="true" stopOnFailure="false"> - - ./includes - ./includes -- 2.20.1