http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72799

Revision: 72799
Author:   platonides
Date:     2010-09-11 12:20:08 +0000 (Sat, 11 Sep 2010)

Log Message:
-----------
Changing paths so that they work both on Unix and Windows.
Added an ughly conditional to support both the normal location on svn checkout 
and jeroen one.

It can be run as phpunit <something>  Maps/test/Maps...ParserTest.php 

Modified Paths:
--------------
    trunk/extensions/Maps/test/MapsCoordinateParserTest.php
    trunk/extensions/Maps/test/MapsDistanceParserTest.php
    trunk/extensions/Maps/test/MapsTestSuite.php

Modified: trunk/extensions/Maps/test/MapsCoordinateParserTest.php
===================================================================
--- trunk/extensions/Maps/test/MapsCoordinateParserTest.php     2010-09-11 
10:39:08 UTC (rev 72798)
+++ trunk/extensions/Maps/test/MapsCoordinateParserTest.php     2010-09-11 
12:20:08 UTC (rev 72799)
@@ -1,11 +1,12 @@
 <?php
 
-require_once 'PHPUnit\Framework\TestCase.php';
+require_once 'PHPUnit/Framework/TestCase.php';
 
 // Trick MW into thinking this is a command line script.
 // This is obviously not a good approach, as it will not work on other setups 
then my own.
 unset( $_SERVER['REQUEST_METHOD'] );
 $argv = array( 'over9000failz' );
+( include dirname(__FILE__) . '/../../../phase3/maintenance/commandLine.inc' ) 
or
 require_once '../../../smw/maintenance/commandLine.inc';
 
 /**
@@ -311,4 +312,4 @@
                }               
        }
 
-}
\ No newline at end of file
+}

Modified: trunk/extensions/Maps/test/MapsDistanceParserTest.php
===================================================================
--- trunk/extensions/Maps/test/MapsDistanceParserTest.php       2010-09-11 
10:39:08 UTC (rev 72798)
+++ trunk/extensions/Maps/test/MapsDistanceParserTest.php       2010-09-11 
12:20:08 UTC (rev 72799)
@@ -1,11 +1,12 @@
 <?php
 
-require_once 'PHPUnit\Framework\TestCase.php';
+require_once 'PHPUnit/Framework/TestCase.php';
 
 // Trick MW into thinking this is a command line script.
 // This is obviously not a good approach, as it will not work on other setups 
then my own.
 unset( $_SERVER['REQUEST_METHOD'] );
 $argv = array( 'over9000failz' );
+( include dirname(__FILE__) . '/../../../phase3/maintenance/commandLine.inc' ) 
or
 require_once '../../../smw/maintenance/commandLine.inc';
 
 /**
@@ -176,4 +177,4 @@
        
        }
 
-}
\ No newline at end of file
+}

Modified: trunk/extensions/Maps/test/MapsTestSuite.php
===================================================================
--- trunk/extensions/Maps/test/MapsTestSuite.php        2010-09-11 10:39:08 UTC 
(rev 72798)
+++ trunk/extensions/Maps/test/MapsTestSuite.php        2010-09-11 12:20:08 UTC 
(rev 72799)
@@ -1,6 +1,6 @@
 <?php
 
-require_once 'PHPUnit\Framework\TestSuite.php';
+require_once 'PHPUnit/Framework/TestSuite.php';
 
 /**
  * Static test suite.



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to