tests: Use checkPHPExtension() instead of re-implementing it
[lhc/web/wiklou.git] / tests / phpunit / includes / collation / CollationFaTest.php
index f230197..f745541 100644 (file)
@@ -1,4 +1,8 @@
 <?php
+
+/**
+ * @covers CollationFa
+ */
 class CollationFaTest extends MediaWikiTestCase {
 
        /*
@@ -7,6 +11,11 @@ class CollationFaTest extends MediaWikiTestCase {
         * against a random version of libicu
         */
 
+       public function setUp() {
+               parent::setUp();
+               $this->checkPHPExtension( 'intl' );
+       }
+
        /**
         * @dataProvider provideGetFirstLetter
         */