Import: Handle uploads with sha1 starting with 0 properly
[mediawiki.git] / tests / phpunit / includes / XmlJsTest.php
blob21819b7e933414e279a04976e30707ae1ba44368
1 <?php
3 /**
4 * @group Xml
5 */
6 class XmlJs extends PHPUnit_Framework_TestCase {
8 /**
9 * @covers XmlJsCode::__construct
10 * @dataProvider provideConstruction
12 public function testConstruction( $value ) {
13 $obj = new XmlJsCode( $value );
14 $this->assertEquals( $value, $obj->value );
17 public static function provideConstruction() {
18 return array(
19 array( null ),
20 array( '' ),