r94950 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94949‎ | r94950 | r94951 >
Date:21:28, 18 August 2011
Author:hashar
Status:ok
Tags:
Comment:
update test to use MediaWikiTestCase class

The CodeReview extension PHPUnit tests were still using the old
PHPUnit_Framework_TestCase. Make it extends MediaWikiTestCase instead

TEST PLAN:

$ ./phpunit.php --filter CodeReview
PHPUnit 3.5.14 by Sebastian Bergmann.

..

Time: 5 seconds, Memory: 34.75Mb

OK (2 tests, 9 assertions)
$
Modified paths:
  • /trunk/extensions/CodeReview/tests/CodeReviewTest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/tests/CodeReviewTest.php
@@ -1,6 +1,6 @@
22 <?php
33
4 -class CodeReviewTest extends PHPUnit_Framework_TestCase {
 4+class CodeReviewTest extends MediaWikiTestCase {
55 private function createRepo() {
66 $row = new stdClass();
77 $row->repo_id = 1;

Status & tagging log