2011-02-06 13:59:06 +00:00
|
|
|
<?php
|
2013-10-21 21:09:13 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @group Xml
|
|
|
|
|
*/
|
2019-07-07 23:28:25 +00:00
|
|
|
class XmlJsTest extends MediaWikiUnitTestCase {
|
2017-12-29 23:22:37 +00:00
|
|
|
|
2013-10-21 21:09:13 +00:00
|
|
|
/**
|
|
|
|
|
* @covers XmlJsCode::__construct
|
|
|
|
|
*/
|
2020-12-23 10:03:34 +00:00
|
|
|
public function testConstruction() {
|
|
|
|
|
$obj = new XmlJsCode( '' );
|
|
|
|
|
$this->assertSame( '', $obj->value );
|
2013-10-21 21:09:13 +00:00
|
|
|
|
2020-12-23 10:03:34 +00:00
|
|
|
$obj = new XmlJsCode( null );
|
|
|
|
|
$this->assertNull( $obj->value );
|
2013-10-21 21:09:13 +00:00
|
|
|
}
|
|
|
|
|
|
2011-02-06 13:59:06 +00:00
|
|
|
}
|