summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/XmlJsTest.php
blob: 21819b7e933414e279a04976e30707ae1ba44368 (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 PHPUnit_Framework_TestCase {

	/**
	 * @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( '' ),
		);
	}

}