blob: c7975efabc91c320ee2be6f484d23cbf40815a6a (
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
25
26
|
<?php
/**
* @group Xml
*/
class XmlJsTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
/**
* @covers XmlJsCode::__construct
* @dataProvider provideConstruction
*/
public function testConstruction( $value ) {
$obj = new XmlJsCode( $value );
$this->assertEquals( $value, $obj->value );
}
public static function provideConstruction() {
return [
[ null ],
[ '' ],
];
}
}
|