Depends-On: I16691fc8ac063705ba0c2bc63b96c4534ca8660b Bug: T87781 Change-Id: I5e1ab06e3decef6cc6090551d54dc4314ab9314a
24 lines
385 B
PHP
24 lines
385 B
PHP
<?php
|
|
|
|
/**
|
|
* @group Xml
|
|
*/
|
|
class XmlJsTest extends MediaWikiUnitTestCase {
|
|
|
|
/**
|
|
* @covers XmlJsCode::__construct
|
|
* @dataProvider provideConstruction
|
|
*/
|
|
public function testConstruction( $value ) {
|
|
$obj = new XmlJsCode( $value );
|
|
$this->assertEquals( $value, $obj->value );
|
|
}
|
|
|
|
public static function provideConstruction() {
|
|
return [
|
|
[ null ],
|
|
[ '' ],
|
|
];
|
|
}
|
|
|
|
}
|