r100288 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100287‎ | r100288 | r100289 >
Date:22:38, 19 October 2011
Author:jpostlethwaite
Status:ok
Tags:fundraising 
Comment:
Moved PHPunit require_once to customizable configuration file.
Modified paths:
  • /trunk/extensions/DonationInterface/tests/TestConfiguration.php.dist (modified) (history)
  • /trunk/extensions/DonationInterface/tests/TestHelper.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/tests/TestConfiguration.php.dist
@@ -19,6 +19,16 @@
2020 */
2121
2222 /*
 23+ * Include PHPUnit dependencies
 24+ */
 25+require_once 'PHPUnit/Framework/IncompleteTestError.php';
 26+require_once 'PHPUnit/Framework/TestCase.php';
 27+require_once 'PHPUnit/Framework/TestSuite.php';
 28+require_once 'PHPUnit/Runner/Version.php';
 29+require_once 'PHPUnit/TextUI/TestRunner.php';
 30+require_once 'PHPUnit/Util/Filter.php';
 31+
 32+/*
2333 * This file contains custom options and constants for test configuration.
2434 */
2535
Index: trunk/extensions/DonationInterface/tests/TestHelper.php
@@ -23,16 +23,6 @@
2424 */
2525
2626 /*
27 - * Include PHPUnit dependencies
28 - */
29 -require_once 'PHPUnit/Framework/IncompleteTestError.php';
30 -require_once 'PHPUnit/Framework/TestCase.php';
31 -require_once 'PHPUnit/Framework/TestSuite.php';
32 -require_once 'PHPUnit/Runner/Version.php';
33 -require_once 'PHPUnit/TextUI/TestRunner.php';
34 -require_once 'PHPUnit/Util/Filter.php';
35 -
36 -/*
3727 * Set error reporting to the level to which code must comply.
3828 */
3929 error_reporting( E_ALL | E_STRICT );

Status & tagging log