summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/XmlJsTest.php
blob: 161468e29e81c60376b7bd4ab510b3e27b8068c3 (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 function provideConstruction(){
		return array(
			array( null ),
			array( '' ),
		);
	}

}