Mwjames has uploaded a new change for review. https://gerrit.wikimedia.org/r/65771
Change subject: Use ResultPrinterTestCase ...................................................................... Use ResultPrinterTestCase Due to changes made by [1] [1] https://gerrit.wikimedia.org/r/#/c/65769/ Change-Id: I95c0e0c28ba560c252abac21c55201634c30d9f4 --- M tests/phpunit/formats/ArrayTest.php D tests/phpunit/formats/BoilerplateTest.php M tests/phpunit/formats/DataTablesTest.php M tests/phpunit/formats/DygraphsTest.php M tests/phpunit/formats/EventCalendarTest.php M tests/phpunit/formats/ExcelTest.php D tests/phpunit/formats/FeedTest.php M tests/phpunit/formats/GalleryTest.php M tests/phpunit/formats/GraphTest.php M tests/phpunit/formats/IncomingTest.php M tests/phpunit/formats/ListWidgetTest.php M tests/phpunit/formats/MathTest.php M tests/phpunit/formats/MediaPlayerTest.php M tests/phpunit/formats/PageWidgetTest.php M tests/phpunit/formats/SparklineTest.php M tests/phpunit/formats/TagCloudTest.php M tests/phpunit/formats/TimeseriesTest.php M tests/phpunit/formats/jqPlotChartTest.php M tests/phpunit/formats/jqPlotSeriesTest.php M tests/phpunit/formats/vCardTest.php 20 files changed, 100 insertions(+), 174 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticResultFormats refs/changes/71/65771/1 diff --git a/tests/phpunit/formats/ArrayTest.php b/tests/phpunit/formats/ArrayTest.php index 60ed99d..9d63d6e 100644 --- a/tests/phpunit/formats/ArrayTest.php +++ b/tests/phpunit/formats/ArrayTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\Array class. + * Tests for the SRF\Array class. * * @file * @since 1.8 @@ -19,7 +20,7 @@ * @licence GNU GPL v2+ * @author Jeroen De Dauw < jeroended...@gmail.com > */ -class ArrayTest extends ResultPrinterTest { +class ArrayTest extends ResultPrinterTestCase { /** * @see ResultPrinterTest::getFormats diff --git a/tests/phpunit/formats/BoilerplateTest.php b/tests/phpunit/formats/BoilerplateTest.php deleted file mode 100644 index 5773914..0000000 --- a/tests/phpunit/formats/BoilerplateTest.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php - -namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; - -/** - * Tests for the SRF\Boilerplate class. - * - * @file - * @since 1.8 - * - * @ingroup SemanticResultFormats - * @ingroup Test - * - * @group SRF - * @group SMWExtension - * @group ResultPrinters - * - * @licence GNU GPL v2+ - * @author mwjames - */ -class BoilerplateTest extends ResultPrinterTest { - - /** - * @see ResultPrinterTest::getFormats - * - * @since 1.8 - * - * @return array - */ - public function getFormats() { - return array( 'boilerplate' ); - } - - /** - * @see ResultPrinterTest::getClass - * - * @since 1.8 - * - * @return string - */ - public function getClass() { - return '\SRFBoilerplate'; - } -} \ No newline at end of file diff --git a/tests/phpunit/formats/DataTablesTest.php b/tests/phpunit/formats/DataTablesTest.php index aff17bc..b5ca176 100644 --- a/tests/phpunit/formats/DataTablesTest.php +++ b/tests/phpunit/formats/DataTablesTest.php @@ -1,7 +1,8 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** * Tests for the SRF\DataTables class. @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class DataTablesTest extends ResultPrinterTest { +class DataTablesTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.9 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.9 * diff --git a/tests/phpunit/formats/DygraphsTest.php b/tests/phpunit/formats/DygraphsTest.php index 9c511e2..ee7ac69 100644 --- a/tests/phpunit/formats/DygraphsTest.php +++ b/tests/phpunit/formats/DygraphsTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\Dygraphs class. + * Tests for the SRF\Dygraphs class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class DygraphsTest extends ResultPrinterTest { +class DygraphsTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/EventCalendarTest.php b/tests/phpunit/formats/EventCalendarTest.php index a07d534..5352bd7 100644 --- a/tests/phpunit/formats/EventCalendarTest.php +++ b/tests/phpunit/formats/EventCalendarTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\EventCalendar class. + * Tests for the SRF\EventCalendar class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class EventCalendarTest extends ResultPrinterTest { +class EventCalendarTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/ExcelTest.php b/tests/phpunit/formats/ExcelTest.php index 285b30a..50bb229 100644 --- a/tests/phpunit/formats/ExcelTest.php +++ b/tests/phpunit/formats/ExcelTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\Excel class. + * Tests for the SRF\Excel class. * * @since 1.9 * @@ -17,10 +18,10 @@ * * @author Kim Eik */ -class ExcelTest extends ResultPrinterTest { +class ExcelTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -31,7 +32,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/FeedTest.php b/tests/phpunit/formats/FeedTest.php deleted file mode 100644 index 78322da..0000000 --- a/tests/phpunit/formats/FeedTest.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php - -namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; - -/** - * Tests for the SRF\Feed class. - * - * @file - * @since 1.8 - * - * @ingroup SemanticResultFormats - * @ingroup Test - * - * @group SRF - * @group SMWExtension - * @group ResultPrinters - * - * @licence GNU GPL v2+ - * @author mwjames - */ -class FeedTest extends ResultPrinterTest { - - /** - * @see ResultPrinterTest::getFormats - * - * @since 1.8 - * - * @return array - */ - public function getFormats() { - return array( 'feed' ); - } - - /** - * @see ResultPrinterTest::getClass - * - * @since 1.8 - * - * @return string - */ - public function getClass() { - return '\SRFSyndicationFeed'; - } - -} diff --git a/tests/phpunit/formats/GalleryTest.php b/tests/phpunit/formats/GalleryTest.php index bfc7eb3..292a5a8 100644 --- a/tests/phpunit/formats/GalleryTest.php +++ b/tests/phpunit/formats/GalleryTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\Gallery class. + * Tests for the SRF\Gallery class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author Jeroen De Dauw < jeroended...@gmail.com > */ -class GalleryTest extends ResultPrinterTest { +class GalleryTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/GraphTest.php b/tests/phpunit/formats/GraphTest.php index 4166c96..3a3e3c0 100644 --- a/tests/phpunit/formats/GraphTest.php +++ b/tests/phpunit/formats/GraphTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\Array class. + * Tests for the SRF\Array class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author Jeroen De Dauw < jeroended...@gmail.com > */ -class GraphTest extends ResultPrinterTest { +class GraphTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/IncomingTest.php b/tests/phpunit/formats/IncomingTest.php index 51be12e..f0bcc50 100644 --- a/tests/phpunit/formats/IncomingTest.php +++ b/tests/phpunit/formats/IncomingTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\Incoming class. + * Tests for the SRF\Incoming class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class IncomingTest extends ResultPrinterTest { +class IncomingTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/ListWidgetTest.php b/tests/phpunit/formats/ListWidgetTest.php index 14d6f23..8e37364 100644 --- a/tests/phpunit/formats/ListWidgetTest.php +++ b/tests/phpunit/formats/ListWidgetTest.php @@ -1,7 +1,8 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** * Tests for the SRF\ListWidget class. @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class ListWidgetTest extends ResultPrinterTest { +class ListWidgetTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/MathTest.php b/tests/phpunit/formats/MathTest.php index 9fbae1c..f0a726b 100644 --- a/tests/phpunit/formats/MathTest.php +++ b/tests/phpunit/formats/MathTest.php @@ -1,7 +1,8 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** * Tests for the SRF\Math class. @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author Jeroen De Dauw < jeroended...@gmail.com > */ -class MathTest extends ResultPrinterTest { +class MathTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/MediaPlayerTest.php b/tests/phpunit/formats/MediaPlayerTest.php index 72e1c5e..28c7192 100644 --- a/tests/phpunit/formats/MediaPlayerTest.php +++ b/tests/phpunit/formats/MediaPlayerTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\MediaPlayer class. + * Tests for the SRF\MediaPlayer class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class MediaPlayerTest extends ResultPrinterTest { +class MediaPlayerTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/PageWidgetTest.php b/tests/phpunit/formats/PageWidgetTest.php index 025de03..495a316 100644 --- a/tests/phpunit/formats/PageWidgetTest.php +++ b/tests/phpunit/formats/PageWidgetTest.php @@ -1,7 +1,8 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** * Tests for the SRF\PageWidget class. @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class PageWidgetTest extends ResultPrinterTest { +class PageWidgetTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/SparklineTest.php b/tests/phpunit/formats/SparklineTest.php index b119d25..af8f5a5 100644 --- a/tests/phpunit/formats/SparklineTest.php +++ b/tests/phpunit/formats/SparklineTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\Sparkline class. + * Tests for the SRF\Sparkline class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class SparklineTest extends ResultPrinterTest { +class SparklineTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/TagCloudTest.php b/tests/phpunit/formats/TagCloudTest.php index 833e47b..d092ee1 100644 --- a/tests/phpunit/formats/TagCloudTest.php +++ b/tests/phpunit/formats/TagCloudTest.php @@ -2,7 +2,7 @@ namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; +use SMW\Test\ResultPrinterTestCase; /** * Tests for the SRF\TagCloud class. @@ -40,10 +40,10 @@ * @group SMWExtension * @group ResultPrinters */ -class TagCloudTest extends ResultPrinterTest { +class TagCloudTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -54,7 +54,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/TimeseriesTest.php b/tests/phpunit/formats/TimeseriesTest.php index 684cef7..2d586c6 100644 --- a/tests/phpunit/formats/TimeseriesTest.php +++ b/tests/phpunit/formats/TimeseriesTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\Sparkline class. + * Tests for the SRF\Sparkline class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class TimeseriesTest extends ResultPrinterTest { +class TimeseriesTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/jqPlotChartTest.php b/tests/phpunit/formats/jqPlotChartTest.php index 2cbda11..67bab66 100644 --- a/tests/phpunit/formats/jqPlotChartTest.php +++ b/tests/phpunit/formats/jqPlotChartTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\jqPlotChart class. + * Tests for the SRF\jqPlotChart class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class jqPlotChartTest extends ResultPrinterTest { +class jqPlotChartTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/jqPlotSeriesTest.php b/tests/phpunit/formats/jqPlotSeriesTest.php index 98ca52f..887af96 100644 --- a/tests/phpunit/formats/jqPlotSeriesTest.php +++ b/tests/phpunit/formats/jqPlotSeriesTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\jqPlotSeries class. + * Tests for the SRF\jqPlotSeries class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author mwjames */ -class jqPlotSeriesTest extends ResultPrinterTest { +class jqPlotSeriesTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * diff --git a/tests/phpunit/formats/vCardTest.php b/tests/phpunit/formats/vCardTest.php index a1c5c36..8842e78 100644 --- a/tests/phpunit/formats/vCardTest.php +++ b/tests/phpunit/formats/vCardTest.php @@ -1,10 +1,11 @@ <?php namespace SRF\Test; -use SMW\Tests\ResultPrinterTest; + +use SMW\Test\ResultPrinterTestCase; /** - * Tests for the SRF\Gallery class. + * Tests for the SRF\Gallery class. * * @file * @since 1.8 @@ -19,10 +20,10 @@ * @licence GNU GPL v2+ * @author Jeroen De Dauw < jeroended...@gmail.com > */ -class vCardTest extends ResultPrinterTest { +class vCardTest extends ResultPrinterTestCase { /** - * @see ResultPrinterTest::getFormats + * @see ResultPrinterTestCase::getFormats * * @since 1.8 * @@ -33,7 +34,7 @@ } /** - * @see ResultPrinterTest::getClass + * @see ResultPrinterTestCase::getClass * * @since 1.8 * -- To view, visit https://gerrit.wikimedia.org/r/65771 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I95c0e0c28ba560c252abac21c55201634c30d9f4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SemanticResultFormats Gerrit-Branch: master Gerrit-Owner: Mwjames <jamesin.hongkon...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits