Merge "Chinese Conversion Table Update 2017-6"
[lhc/web/wiklou.git] / tests / phpunit / includes / XmlJsTest.php
1 <?php
2
3 /**
4 * @group Xml
5 */
6 class XmlJsTest extends PHPUnit_Framework_TestCase {
7
8 use MediaWikiCoversValidator;
9
10 /**
11 * @covers XmlJsCode::__construct
12 * @dataProvider provideConstruction
13 */
14 public function testConstruction( $value ) {
15 $obj = new XmlJsCode( $value );
16 $this->assertEquals( $value, $obj->value );
17 }
18
19 public static function provideConstruction() {
20 return [
21 [ null ],
22 [ '' ],
23 ];
24 }
25
26 }