wiki.techinc.nl/tests/phpunit/unit/includes/XmlJsTest.php
Amir Sarabadani 57261a926c Move unit tests, round III
Depends-On: I16691fc8ac063705ba0c2bc63b96c4534ca8660b
Bug: T87781
Change-Id: I5e1ab06e3decef6cc6090551d54dc4314ab9314a
2019-07-09 22:06:59 +02:00

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 ],
[ '' ],
];
}
}