Add @covers for RemexStripTagHandler
[lhc/web/wiklou.git] / tests / phpunit / includes / LicensesTest.php
index 212b3b3..0e96bf4 100644 (file)
@@ -1,14 +1,17 @@
 <?php
 
+/**
+ * @covers Licenses
+ */
 class LicensesTest extends MediaWikiTestCase {
 
-       function testLicenses() {
+       public function testLicenses() {
                $str = "
 * Free licenses:
 ** GFDL|Debian disagrees
 ";
 
-               $lc = new Licenses( array(
+               $lc = new Licenses( [
                        'fieldname' => 'FooField',
                        'type' => 'select',
                        'section' => 'description',
@@ -16,7 +19,7 @@ class LicensesTest extends MediaWikiTestCase {
                        'label' => 'A label text', # Note can't test label-message because $wgOut is not defined
                        'name' => 'AnotherName',
                        'licenses' => $str,
-               ) );
-               $this->assertThat( $lc, $this->isInstanceOf( 'Licenses' ) );
+               ] );
+               $this->assertThat( $lc, $this->isInstanceOf( Licenses::class ) );
        }
 }