From f13819e5bea326a914780880b07de0a812537120 Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 20 Feb 2012 16:03:40 +0000 Subject: [PATCH] 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 --- tests/phpunit/includes/DiffHistoryBlobTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1