xdiff_string_rabdiff() appeared in version 1.5.0 of xdiff extension.
authorPlatonides <platonides@users.mediawiki.org>
Mon, 20 Feb 2012 16:03:40 +0000 (16:03 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 20 Feb 2012 16:03:40 +0000 (16:03 +0000)
PHP manual saying PECL xdiff >= 0.2.0 is wrong.
Follow-up to r111701

tests/phpunit/includes/DiffHistoryBlobTest.php

index eda55e0..cdb6ed2 100644 (file)
@@ -6,6 +6,10 @@ class DiffHistoryBlobTest extends MediaWikiTestCase {
                        $this->markTestSkipped( 'The xdiff extension is not available' );
                        return;
                }
+               if ( !function_exists( 'xdiff_string_rabdiff' ) ) {
+                       $this->markTestSkipped( 'The version of xdiff extension is lower than 1.5.0' );
+                       return;
+               }
                if ( !extension_loaded( 'hash' ) && !extension_loaded( 'mhash' ) ) {
                        $this->markTestSkipped( 'Neither the hash nor mhash extension is available' );
                        return;