* parent::setUp() should be first, and ::tearDown() should be last * Move tests that directly extend PHPUnit\Framework\TestCase to /unit Change-Id: I1172855c58f4f52a8f624e6d596ec43beb8c93ff
19 lines
306 B
PHP
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 );
|
|
}
|
|
|
|
}
|