]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - tests/phpunit/includes/XmlJsTest.php
MediaWiki 1.30.2
[autoinstalls/mediawiki.git] / tests / phpunit / includes / XmlJsTest.php
1 <?php
2
3 /**
4  * @group Xml
5  */
6 class XmlJs extends PHPUnit_Framework_TestCase {
7
8         /**
9          * @covers XmlJsCode::__construct
10          * @dataProvider provideConstruction
11          */
12         public function testConstruction( $value ) {
13                 $obj = new XmlJsCode( $value );
14                 $this->assertEquals( $value, $obj->value );
15         }
16
17         public static function provideConstruction() {
18                 return [
19                         [ null ],
20                         [ '' ],
21                 ];
22         }
23
24 }