wiki.techinc.nl/tests/phpunit/includes/XmlJsTest.php
Umherirrender 63d96c15fd build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: I59b59f79bbf3ce4feff3b3a20c1c31bc16370531
2018-02-17 13:29:13 +01:00

26 lines
422 B
PHP

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