From: Platonides Date: Mon, 20 Feb 2012 16:03:40 +0000 (+0000) Subject: xdiff_string_rabdiff() appeared in version 1.5.0 of xdiff extension. X-Git-Tag: 1.31.0-rc.0~24611 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=f13819e5bea326a914780880b07de0a812537120;p=lhc%2Fweb%2Fwiklou.git xdiff_string_rabdiff() appeared in version 1.5.0 of xdiff extension. PHP manual saying PECL xdiff >= 0.2.0 is wrong. Follow-up to r111701 --- diff --git a/tests/phpunit/includes/DiffHistoryBlobTest.php b/tests/phpunit/includes/DiffHistoryBlobTest.php index eda55e0654..cdb6ed2f72 100644 --- a/tests/phpunit/includes/DiffHistoryBlobTest.php +++ b/tests/phpunit/includes/DiffHistoryBlobTest.php @@ -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;