summaryrefslogtreecommitdiff
path: root/includes/normal
diff options
context:
space:
mode:
Diffstat (limited to 'includes/normal')
-rw-r--r--includes/normal/CleanUpTest.php2
-rw-r--r--includes/normal/RandomTest.php6
-rw-r--r--includes/normal/UtfNormal.php2
3 files changed, 5 insertions, 5 deletions
diff --git a/includes/normal/CleanUpTest.php b/includes/normal/CleanUpTest.php
index 4e147cfd..30ec6a95 100644
--- a/includes/normal/CleanUpTest.php
+++ b/includes/normal/CleanUpTest.php
@@ -412,7 +412,7 @@ class CleanUpTest extends PHPUnit_TestCase {
}
-$suite =& new PHPUnit_TestSuite( 'CleanUpTest' );
+$suite = new PHPUnit_TestSuite( 'CleanUpTest' );
$result = PHPUnit::run( $suite );
echo $result->toString();
diff --git a/includes/normal/RandomTest.php b/includes/normal/RandomTest.php
index 3a5a407b..e2601366 100644
--- a/includes/normal/RandomTest.php
+++ b/includes/normal/RandomTest.php
@@ -65,8 +65,8 @@ function showDiffs( $a, $b ) {
$ota = explode( "\n", str_replace( "\r\n", "\n", $a ) );
$nta = explode( "\n", str_replace( "\r\n", "\n", $b ) );
- $diffs =& new Diff( $ota, $nta );
- $formatter =& new TableDiffFormatter();
+ $diffs = new Diff( $ota, $nta );
+ $formatter = new TableDiffFormatter();
$funky = $formatter->format( $diffs );
preg_match_all( '/<span class="diffchange">(.*?)<\/span>/', $funky, $matches );
foreach( $matches[1] as $bit ) {
@@ -104,4 +104,4 @@ while( true ) {
$norm = '';
}
-?> \ No newline at end of file
+?>
diff --git a/includes/normal/UtfNormal.php b/includes/normal/UtfNormal.php
index d8641993..af3809d5 100644
--- a/includes/normal/UtfNormal.php
+++ b/includes/normal/UtfNormal.php
@@ -33,7 +33,7 @@
*/
/** */
-require_once 'UtfNormalUtil.php';
+require_once dirname(__FILE__).'/UtfNormalUtil.php';
global $utfCombiningClass, $utfCanonicalComp, $utfCanonicalDecomp;
$utfCombiningClass = NULL;