summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/XmlJsTest.php
blob: 0dbb01090c8f076c3a58d251ca19f2701dd00cbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

/**
 * @group Xml
 */
class XmlJs extends MediaWikiTestCase {

	/**
	 * @covers XmlJsCode::__construct
	 * @dataProvider provideConstruction
	 */
	public function testConstruction( $value ) {
		$obj = new XmlJsCode( $value );
		$this->assertEquals( $value, $obj->value );
	}

	public static function provideConstruction() {
		return array(
			array( null ),
			array( '' ),
		);
	}

}