test: coverage recording now needs to be explicit
[mediawiki.git] / tests / phpunit / includes / LicensesTest.php
blob212b3b3bf0a71cda0d982bb72b9362e0079991cd
1 <?php
3 class LicensesTest extends MediaWikiTestCase {
5 function testLicenses() {
6 $str = "
7 * Free licenses:
8 ** GFDL|Debian disagrees
9 ";
11 $lc = new Licenses( array(
12 'fieldname' => 'FooField',
13 'type' => 'select',
14 'section' => 'description',
15 'id' => 'wpLicense',
16 'label' => 'A label text', # Note can't test label-message because $wgOut is not defined
17 'name' => 'AnotherName',
18 'licenses' => $str,
19 ) );
20 $this->assertThat( $lc, $this->isInstanceOf( 'Licenses' ) );