wiki.techinc.nl/tests/phpunit/unit/includes/XmlJsTest.php
DannyS712 6a93b0ca93 More misc test cleanup
* parent::setUp() should be first, and ::tearDown()
  should be last
* Move tests that directly extend PHPUnit\Framework\TestCase
  to /unit

Change-Id: I1172855c58f4f52a8f624e6d596ec43beb8c93ff
2020-12-24 00:52:06 +00:00

19 lines
306 B
PHP

<?php
/**
* @group Xml
*/
class XmlJsTest extends MediaWikiUnitTestCase {
/**
* @covers XmlJsCode::__construct
*/
public function testConstruction() {
$obj = new XmlJsCode( '' );
$this->assertSame( '', $obj->value );
$obj = new XmlJsCode( null );
$this->assertNull( $obj->value );
}
}