MediaWiki REL1_30
LicensesTest.php
Go to the documentation of this file.
1<?php
2
7
8 public function testLicenses() {
9 $str = "
10* Free licenses:
11** GFDL|Debian disagrees
12";
13
14 $lc = new Licenses( [
15 'fieldname' => 'FooField',
16 'type' => 'select',
17 'section' => 'description',
18 'id' => 'wpLicense',
19 'label' => 'A label text', # Note can't test label-message because $wgOut is not defined
20 'name' => 'AnotherName',
21 'licenses' => $str,
22 ] );
23 $this->assertThat( $lc, $this->isInstanceOf( 'Licenses' ) );
24 }
25}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses
Definition COPYING.txt:52
Licenses.
A License class for use on Special:Upload.
Definition Licenses.php:30