<?php
+/**
+ * @covers Licenses
+ */
class LicensesTest extends MediaWikiTestCase {
public function testLicenses() {
** GFDL|Debian disagrees
";
- $lc = new Licenses( array(
+ $lc = new Licenses( [
'fieldname' => 'FooField',
'type' => 'select',
'section' => 'description',
'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' ) );
}
}