r88769 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88768‎ | r88769 | r88770 >
Date:00:30, 25 May 2011
Author:demon
Status:ok
Tags:
Comment:
Extend MediaWikiTestCase in a few places
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/MWNamespaceTest.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/XmlJsTest.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/parser/MagicVariableTest.php (modified) (history)
  • /trunk/phase3/tests/phpunit/suites/ExtensionsTestSuite.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/XmlJsTest.php
@@ -1,5 +1,5 @@
22 <?php
3 -class XmlJs extends PHPUnit_Framework_TestCase {
 3+class XmlJs extends MediaWikiTestCase {
44 public function testConstruction() {
55 $obj = new XmlJsCode( null );
66 $this->assertNull( $obj->value );
Index: trunk/phase3/tests/phpunit/includes/MWNamespaceTest.php
@@ -10,7 +10,7 @@
1111 * Generated by PHPUnit on 2011-02-20 at 21:01:55.
1212 *
1313 */
14 -class MWNamespaceTest extends PHPUnit_Framework_TestCase {
 14+class MWNamespaceTest extends MediaWikiTestCase {
1515 /**
1616 * @var MWNamespace
1717 */
Index: trunk/phase3/tests/phpunit/includes/parser/MagicVariableTest.php
@@ -12,7 +12,7 @@
1313 */
1414
1515 /** */
16 -class MagicVariableTest extends PHPUnit_Framework_TestCase {
 16+class MagicVariableTest extends MediaWikiTestCase {
1717 /** Will contains a parser object*/
1818 private $testParser = null;
1919
Index: trunk/phase3/tests/phpunit/suites/ExtensionsTestSuite.php
@@ -26,7 +26,7 @@
2727 * Needed to avoid warnings like 'No tests found in class "ExtensionsTestSuite".'
2828 * when no extensions with tests are used.
2929 */
30 -class DummyExtensionsTest extends PHPUnit_Framework_TestCase {
 30+class DummyExtensionsTest extends MediaWikiTestCase {
3131 public function testNothing() {
3232
3333 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r92239MFT PHPUnit testing related revisions:...hashar12:13, 15 July 2011

Status & tagging log